mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
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:
committed by
Christian Decker
parent
030a19a8af
commit
23af9d4972
@@ -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"}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user