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:
niftynei
2020-06-16 13:43:51 -05:00
committed by Christian Decker
parent 0388fe6db4
commit fd8a716695
4 changed files with 11 additions and 9 deletions

View File

@@ -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! */