lightningd: don't allow enableoffer on single-use offer.

Changelog-Fixed: enableoffer: Adding an error when trying to activate an used single use offer (don't crash!)
This commit is contained in:
21M4TW
2026-01-28 15:23:11 +10:30
committed by Rusty Russell
parent e2d17cea0c
commit d76e4e7149
3 changed files with 5 additions and 1 deletions

View File

@@ -116,6 +116,7 @@ enum jsonrpc_errcode {
OFFER_BAD_INVREQ_REPLY = 1004,
OFFER_TIMEOUT = 1005,
OFFER_ALREADY_ENABLED = 1006,
OFFER_USED_SINGLE_USE = 1007,
/* Errors from datastore command */
DATASTORE_DEL_DOES_NOT_EXIST = 1200,