mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
common: add 2 specific error codes wrt funding
Add "peer not connected" and "unknown peer" as error codes, so that users can check against numeric error codes instead of textual error messages. Will ease https://github.com/ElementsProject/lightning/issues/3366 Changelog-None
This commit is contained in:
committed by
ZmnSCPxj, ZmnSCPxj jxPCSmnZ
parent
e1ef902db4
commit
11da88a281
@@ -41,6 +41,8 @@
|
||||
#define FUND_OUTPUT_IS_DUST 302
|
||||
#define FUNDING_BROADCAST_FAIL 303
|
||||
#define FUNDING_STILL_SYNCING_BITCOIN 304
|
||||
#define FUNDING_PEER_NOT_CONNECTED 305
|
||||
#define FUNDING_UNKNOWN_PEER 306
|
||||
|
||||
/* Errors from `invoice` command */
|
||||
#define INVOICE_LABEL_ALREADY_EXISTS 900
|
||||
|
||||
Reference in New Issue
Block a user