hsmd: add hsmd_preapprove_invoice and check_preapproveinvoice pay modifier

Changelog-added: hsmd: A new message `hsmd_preapprove_invoice` is added.
Changelog-added: JSON-RPC: A new command `preapproveinvoice` is added.
This commit is contained in:
Ken Sedgwick
2022-09-13 09:37:05 -07:00
committed by Alex Myers
parent 9482e0619c
commit f29343d740
14 changed files with 205 additions and 0 deletions

View File

@@ -46,6 +46,7 @@ enum jsonrpc_errcode {
PAY_STOPPED_RETRYING = 210,
PAY_STATUS_UNEXPECTED = 211,
PAY_INVOICE_REQUEST_INVALID = 212,
PAY_INVOICE_PREAPPROVAL_DECLINED = 213,
/* `fundchannel` or `withdraw` errors */
FUND_MAX_EXCEEDED = 300,