splicing: Add channel state AWAITING_SPLICE

Update gossip routiens and various other hecks on the channel state to consider AWAITING_SPLICE to be routable and treated similar to CHANNELD_NORMAL.

Small updates to psbt interface

Changelog-None
This commit is contained in:
Dusty Daemon
2023-07-27 13:17:33 -07:00
committed by Rusty Russell
parent 108658a539
commit 50fe819f47
17 changed files with 74 additions and 22 deletions

View File

@@ -116,7 +116,8 @@ void psbt_finalize_input(const tal_t *ctx,
const struct witness **
psbt_to_witnesses(const tal_t *ctx,
const struct wally_psbt *psbt,
enum tx_role side_to_stack)
enum tx_role side_to_stack,
int input_index_to_ignore)
{
u64 serial_id;
const struct witness **witnesses =
@@ -128,6 +129,9 @@ psbt_to_witnesses(const tal_t *ctx,
/* FIXME: throw an error ? */
return tal_free(witnesses);
if (input_index_to_ignore == i)
continue;
/* BOLT-f53ca2301232db780843e894f55d95d512f297f9 #2:
* - if is the *initiator*:
* - MUST send even `serial_id`s