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:
Rusty Russell
2020-05-04 09:49:32 +09:30
parent 7cac5be5cb
commit 046b402c18
6 changed files with 56 additions and 2 deletions

View File

@@ -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 ''