mirror of
https://github.com/aljazceru/lightning.git
synced 2026-02-07 07:04:25 +01:00
psbt: Fix psbt linseraize_input bug
Some fields weren’t intitialized causing complex crashes elsewhere. Changelog-None
This commit is contained in:
committed by
Rusty Russell
parent
50fe819f47
commit
81a738c7cc
@@ -80,6 +80,8 @@ static const u8 *linearize_input(const tal_t *ctx,
|
||||
psbt->inputs[0].taproot_leaf_paths.num_items = 0;
|
||||
psbt->inputs[0].keypaths.num_items = 0;
|
||||
psbt->inputs[0].signatures.num_items = 0;
|
||||
psbt->inputs[0].utxo = NULL;
|
||||
psbt->inputs[0].witness_utxo = NULL;
|
||||
|
||||
const u8 *bytes = psbt_get_bytes(ctx, psbt, &byte_len);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user