mirror of
https://github.com/aljazceru/lightning.git
synced 2026-02-23 15:04:19 +01:00
psbt: update global tx output amount also
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user