onion_message: support variable-length onion messages.

Updated to the BOLT, and a few tweaks, and we can send giant onion_messages.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2021-01-09 14:35:35 +10:30
committed by Christian Decker
parent 030a19a8af
commit 23af9d4972
8 changed files with 66 additions and 25 deletions

View File

@@ -14,6 +14,7 @@ def on_onion_message(plugin, onion_message, **kwargs):
return
plugin.rpc.call('sendonionmessage', [onion_message['reply_path']])
plugin.log("Got onion_message invoice '{}'".format(onion_message['invoice']))
plugin.log("Sent reply via {}".format(onion_message['reply_path']))
return {"result": "continue"}