mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-20 15:44:21 +01:00
wallet: have wallet_extract_outputs take wally_tx, not bitcoin_tx
With the incursion of PSBTs, we're moving away from bitcoin_tx
This commit is contained in:
committed by
Christian Decker
parent
0388fe6db4
commit
fd8a716695
@@ -59,7 +59,7 @@ static void wallet_withdrawal_broadcast(struct bitcoind *bitcoind UNUSED,
|
||||
wallet_confirm_utxos(ld->wallet, utx->wtx->utxos);
|
||||
|
||||
/* Extract the change output and add it to the DB */
|
||||
wallet_extract_owned_outputs(ld->wallet, utx->tx, NULL, &change);
|
||||
wallet_extract_owned_outputs(ld->wallet, utx->tx->wtx, NULL, &change);
|
||||
|
||||
/* Note normally, change_satoshi == withdraw->wtx->change, but
|
||||
* not if we're actually making a payment to ourselves! */
|
||||
|
||||
Reference in New Issue
Block a user