lightningd: rename sendonionmessage to sendobsonionmessage.

sendonionmessage is going to be the new one, and do much *less*.

As this is an internal experimental-only API, no deprecation cycle
required.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2021-09-21 14:53:45 +09:30
parent 191798bb56
commit 37ddf2e829
5 changed files with 24 additions and 24 deletions

View File

@@ -13,7 +13,7 @@ def on_onion_message(plugin, onion_message, **kwargs):
plugin.log("no reply path")
return
plugin.rpc.call('sendonionmessage', [onion_message['reply_path']])
plugin.rpc.call('sendobsonionmessage', [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"}