mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-02 18:35:00 +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);
|
assert(ret == WALLY_OK);
|
||||||
} else {
|
} else {
|
||||||
output->satoshi = satoshis;
|
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