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

@@ -928,6 +928,7 @@ payment_listsendpays_previous(struct command *cmd, const char *buf,
}
struct payment_modifier *paymod_mods[] = {
&check_preapproveinvoice_pay_mod,
/* NOTE: The order in which these four paymods are executed is
* significant!
* local_channel_hints *must* execute first before route_exclusions