invoice: Define specific error codes for duplicate label and preimage.

This commit is contained in:
ZmnSCPxj
2018-04-26 07:42:04 +00:00
committed by Rusty Russell
parent d5a67ec87a
commit 2e73317a39
4 changed files with 56 additions and 5 deletions

View File

@@ -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 */