plugins/fetchinvoice: plugin to send an invoice_request for a given offer

Doesn't catch the reply yet, but prepares the invoice request based on
the offer and sends it.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2020-12-16 13:48:00 +10:30
committed by Christian Decker
parent 43b71de897
commit 3eada358e9
3 changed files with 488 additions and 1 deletions

View File

@@ -80,5 +80,7 @@ static const errcode_t HSM_ECDH_FAILED = 800;
/* Errors from `offer` commands */
static const errcode_t OFFER_ALREADY_EXISTS = 1000;
static const errcode_t OFFER_ALREADY_DISABLED = 1001;
static const errcode_t OFFER_EXPIRED = 1002;
static const errcode_t OFFER_ROUTE_NOT_FOUND = 1003;
#endif /* LIGHTNING_COMMON_JSONRPC_ERRORS_H */