lightningd: add low-level offer interfaces.

The real work is done in a plugin, but provide enough API that we can
manipulate the db.
This commit is contained in:
Rusty Russell
2020-12-14 11:51:19 +10:30
committed by Christian Decker
parent 3f4683e3f8
commit d66dbd473a
3 changed files with 221 additions and 0 deletions

View File

@@ -76,4 +76,8 @@ static const errcode_t INVOICE_STATUS_UNEXPECTED = 906;
/* Errors from HSM crypto operations. */
static const errcode_t HSM_ECDH_FAILED = 800;
/* Errors from `offer` commands */
static const errcode_t OFFER_ALREADY_EXISTS = 1000;
static const errcode_t OFFER_ALREADY_DISABLED = 1001;
#endif /* LIGHTNING_COMMON_JSONRPC_ERRORS_H */