mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 07:04:22 +01:00
invoice: Define specific error codes for duplicate label and preimage.
This commit is contained in:
@@ -23,4 +23,8 @@
|
||||
#define PAY_UNSPECIFIED_ERROR 209
|
||||
#define PAY_STOPPED_RETRYING 210
|
||||
|
||||
/* Errors from `invoice` command */
|
||||
#define INVOICE_LABEL_ALREADY_EXISTS 900
|
||||
#define INVOICE_PREIMAGE_ALREADY_EXISTS 901
|
||||
|
||||
#endif /* LIGHTNING_LIGHTNINGD_JSONRPC_ERRORS_H */
|
||||
|
||||
Reference in New Issue
Block a user