mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-01 17:47:30 +01:00
psbt: update global tx output amount also
This commit is contained in:
parent
cf9de86dba
commit
2055b53425
1 changed files with 4 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue