mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-20 15:44:21 +01:00
features: split expected feature bits into node/peer sets
The new `keysend` plugin modifies the node features that we send to peers. This commit breaks out the 'expected_features' we use for tests to encompass this differentiation.
This commit is contained in:
@@ -6,7 +6,15 @@ EXPERIMENTAL_FEATURES = env("EXPERIMENTAL_FEATURES", "0") == "1"
|
||||
COMPAT = env("COMPAT", "1") == "1"
|
||||
|
||||
|
||||
def expected_features():
|
||||
"""Return the expected features hexstring for this configuration"""
|
||||
def expected_peer_features():
|
||||
"""Return the expected peer features hexstring for this configuration"""
|
||||
# features 1, 3, 7, 9, 11, 13, 15 and 17 (0x02aaa2).
|
||||
return "02aaa2"
|
||||
|
||||
|
||||
# With the addition of the keysend plugin, we now send a different set of
|
||||
# features for the 'node' and the 'peer' feature sets
|
||||
def expected_node_features():
|
||||
"""Return the expected node features hexstring for this configuration"""
|
||||
# features 1, 3, 7, 9, 11, 13, 15, 17 and 55 (0x8000000002aaa2).
|
||||
return "8000000002aaa2"
|
||||
|
||||
Reference in New Issue
Block a user