mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-20 15:44:21 +01:00
gossipd: return channel_announcement features for listchannels.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Changelog-Added: JSON API: `listchannels` now shows channel `features`.
This commit is contained in:
@@ -18,3 +18,12 @@ 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"
|
||||
|
||||
|
||||
def expected_channel_features():
|
||||
"""Return the expected channel features hexstring for this configuration"""
|
||||
# experimental OPT_ONION_MESSAGES
|
||||
if EXPERIMENTAL_FEATURES:
|
||||
return '80000000000000000000000000'
|
||||
else:
|
||||
return ''
|
||||
|
||||
Reference in New Issue
Block a user