Skip to content

Commit

Permalink
bitcoin_block_from_hex: avoid creating PSBT wrappers for finalized bl…
Browse files Browse the repository at this point in the history
…ock txs

Changelog-None

Signed-off-by: Jon Griffiths <[email protected]>
  • Loading branch information
jgriffiths authored and cdecker committed Jan 16, 2024
1 parent cdb5de0 commit 40dd780
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bitcoin/block.c
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ bitcoin_block_from_hex(const tal_t *ctx, const struct chainparams *chainparams,
b->tx = tal_arr(b, struct bitcoin_tx *, num);
b->txids = tal_arr(b, struct bitcoin_txid, num);
for (i = 0; i < num; i++) {
b->tx[i] = pull_bitcoin_tx(b->tx, &p, &len);
b->tx[i] = pull_bitcoin_tx_only(b->tx, &p, &len);
b->tx[i]->chainparams = chainparams;
bitcoin_txid(b->tx[i], &b->txids[i]);
}
Expand Down

0 comments on commit 40dd780

Please sign in to comment.