wallet: Use boolean to determine whether an output is coinbase

This commit is contained in:
Christian Decker
2022-11-08 15:42:38 +01:00
parent 26f5dcd2a5
commit adf14151fa
5 changed files with 8 additions and 8 deletions

View File

@@ -888,8 +888,7 @@ static void sendpsbt_done(struct bitcoind *bitcoind UNUSED,
wallet_transaction_add(ld->wallet, sending->wtx, 0, 0);
/* Extract the change output and add it to the DB */
/* FIXME: what txindex? */
wallet_extract_owned_outputs(ld->wallet, sending->wtx, 1, NULL, &change);
wallet_extract_owned_outputs(ld->wallet, sending->wtx, false, NULL, &change);
wally_txid(sending->wtx, &txid);
for (size_t i = 0; i < sending->psbt->num_outputs; i++)