plugins/fetchinvoice: catch invoice_request reply.

Using onionmessage hook, we get the response and either present it
to the user (invoice) or return the error to the user.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2020-12-16 13:48:20 +10:30
committed by Christian Decker
parent 3eada358e9
commit 69ddf818c7
2 changed files with 259 additions and 5 deletions

View File

@@ -82,5 +82,6 @@ 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;
static const errcode_t OFFER_BAD_INVREQ_REPLY = 1004;
#endif /* LIGHTNING_COMMON_JSONRPC_ERRORS_H */