mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
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:
committed by
Christian Decker
parent
e379528254
commit
67590fc6be
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user