bitcoin: set PSBT amount inside tx for bitcoin_tx_output_set_amount.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell 2023-06-26 08:30:21 +09:30
parent a5232659bf
commit cba310b983

View File

@ -299,6 +299,7 @@ void bitcoin_tx_output_set_amount(struct bitcoin_tx *tx, int outnum,
} else {
output->satoshi = satoshis;
}
wally_psbt_output_set_amount(&tx->psbt->outputs[outnum], satoshis);
}
const u8 *wally_tx_output_get_script(const tal_t *ctx,