lightningd/invoice.c: Add timeout parameter to waitanyinvoice.

Fixes: #3192

Changelog-Added: `waitanyinvoice` now supports a `timeout` parameter, which when set will cause the command to fail when the timeout is reached; can set this to 0 to fail immediately if no new invoice has been paid yet.
This commit is contained in:
ZmnSCPxj jxPCSnmZ
2020-01-28 09:30:00 +08:00
committed by Christian Decker
parent e379528254
commit 67590fc6be
5 changed files with 61 additions and 5 deletions

View File

@@ -52,5 +52,6 @@
#define INVOICE_LABEL_ALREADY_EXISTS 900
#define INVOICE_PREIMAGE_ALREADY_EXISTS 901
#define INVOICE_HINTS_GAVE_NO_ROUTES 902
#define INVOICE_WAIT_TIMED_OUT 904
#endif /* LIGHTNING_COMMON_JSONRPC_ERRORS_H */