mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
psbt: add transaction inputs to the psbt struct
Make sure that we permute them also! Fixes weird spacing also
This commit is contained in:
@@ -168,6 +168,7 @@ int bitcoin_tx_add_input(struct bitcoin_tx *tx, const struct bitcoin_txid *txid,
|
||||
NULL /* Empty witness stack */, &input);
|
||||
input->features = chainparams->is_elements ? WALLY_TX_IS_ELEMENTS : 0;
|
||||
wally_tx_add_input(tx->wtx, input);
|
||||
psbt_add_input(tx->psbt, input, i);
|
||||
wally_tx_input_free(input);
|
||||
|
||||
/* Now store the input amount if we know it, so we can sign later */
|
||||
|
||||
Reference in New Issue
Block a user