Skip to content

Commit

Permalink
zap instead of abandon for aggregated txs
Browse files Browse the repository at this point in the history
  • Loading branch information
alex v committed Jul 30, 2024
1 parent 19eab70 commit 6c3dec7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/wallet/wallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1260,7 +1260,13 @@ bool CWallet::AddToWalletIfInvolvingMe(const CTransactionRef& ptx, const SyncTxS
WalletLogPrintf("Transaction %s (in block %s) conflicts with wallet transaction %s (both spend %s:%i)\n", tx.GetHash().ToString(), conf->confirmed_block_hash.ToString(), range.first->second.ToString(), range.first->first.hash.ToString(), range.first->first.n);
MarkConflicted(conf->confirmed_block_hash, conf->confirmed_block_height, range.first->second);
} else {
AbandonTransaction(range.first->second);
std::vector<uint256> vHash;
vHash.push_back(range.first->second);
std::vector<uint256> vHashOut;

if (ZapSelectTx(vHash, vHashOut) != DBErrors::LOAD_OK) {
AbandonTransaction(range.first->second);
}
}
}
range.first++;
Expand Down

0 comments on commit 6c3dec7

Please sign in to comment.