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

@@ -2297,9 +2297,8 @@ def test_sendcustommsg(node_factory):
serialized=serialized, peer_id=l2.info['id']))
@unittest.skipIf(not EXPERIMENTAL_FEATURES, "Needs sendonionmessage")
def test_sendonionmessage(node_factory):
l1, l2, l3 = node_factory.line_graph(3)
l1, l2, l3 = node_factory.line_graph(3, opts={'experimental-onion-messages': None})
blindedpathtool = os.path.join(os.path.dirname(__file__), "..", "devtools", "blindedpath")