diff --git a/bitcoin/tx.c b/bitcoin/tx.c index b6ecf08a9..b1e2bdf28 100644 --- a/bitcoin/tx.c +++ b/bitcoin/tx.c @@ -217,6 +217,10 @@ void bitcoin_tx_output_set_amount(struct bitcoin_tx *tx, int outnum, assert(ret == WALLY_OK); } else { output->satoshi = satoshis; + + /* update the global tx for the psbt also */ + output = &tx->psbt->tx->outputs[outnum]; + output->satoshi = satoshis; } }