lightningd: control onion messages by experimental-onion-messages option.

Note that this also changes so the feature is not represented in channels,
reflecting the recent drafts.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Changelog-Added: `experimental-onion-messages` enables send, receive and relay of onion messages.
This commit is contained in:
Rusty Russell
2021-01-13 13:30:20 +10:30
committed by Christian Decker
parent 5a483ddd8b
commit fc3e679c97
8 changed files with 34 additions and 30 deletions

View File

@@ -49,9 +49,6 @@ def expected_node_features(wumbo_channels=False, extra=[]):
def expected_channel_features(wumbo_channels=False, extra=[]):
"""Return the expected channel features hexstring for this configuration"""
features = []
if EXPERIMENTAL_FEATURES:
# OPT_ONION_MESSAGES
features += [103]
return hex_bits(features + extra)