Rusty Russell
c08ff167b2
decode: new generic API to decode bolt11 and bolt12.
...
This is experimental for now, but can eventually deprecated
'decodepay' and even decode other kinds of messages.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2021-01-09 14:34:35 +10:30
Rusty Russell
1aa7e8e011
offers: split offer send_invoice generation into new JSON command
...
We split `send_invoice` offers inoo offerout (for want of a better name).
This simplifies the API.
Also took the opportunity to move the `vendor` tag to immediately
follow `description` (our tests use arguments by keywords, so no
change there).
Suggested-by: shesek
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2021-01-09 14:34:35 +10:30
Rusty Russell
bdfcec3eb6
fetchinvoice: check we're in the period before attempting to fetch.
...
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2021-01-09 14:34:35 +10:30
Rusty Russell
f2d2db7b4e
plugins/offer: handle receiving an invoice in an onion_message.
...
And if we have a matching `send_invoice` offer, try to pay it!
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2021-01-09 14:34:35 +10:30
Rusty Russell
6d1fe7e599
plugin/offers: hoist send_onion_reply into core.
...
We want to reuse it.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2021-01-09 14:34:35 +10:30
Rusty Russell
09b18bf64f
libplugin: replace rpc_delve with rpc_scan.
...
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2021-01-07 19:32:47 +01:00
Rusty Russell
9d75fbe237
plugins/offers: add code to catch invoice_request onion messages.
...
We prepare an invoice, but there's no code to send an error reply yet
(future patch).
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2020-12-23 14:24:39 +01:00
Rusty Russell
08e110b568
JSON: offers plugin offer
command.
...
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2020-12-23 14:24:39 +01:00
Rusty Russell
26e0cbeb7c
plugin/offers: skeleton for offers plugin (EXPERIMENTAL_FEATURES)
...
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2020-12-23 14:24:39 +01:00