mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-18 22:54:25 +01:00
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:
committed by
Rusty Russell
parent
108658a539
commit
50fe819f47
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user