Browse Source

psbt: update global tx output amount also

nifty/pset-pre
niftynei 5 years ago
committed by Rusty Russell
parent
commit
2055b53425
  1. 4
      bitcoin/tx.c

4
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;
}
}

Loading…
Cancel
Save