Skip to content

Commit

Permalink
Remove abandon assert for coinstake
Browse files Browse the repository at this point in the history
  • Loading branch information
timemarkovqtum committed May 16, 2024
1 parent a108945 commit a7f4950
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/wallet/wallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1386,7 +1386,9 @@ bool CWallet::AbandonTransaction(const uint256& hashTx)

auto try_updating_state = [](CWalletTx& wtx) EXCLUSIVE_LOCKS_REQUIRED(cs_wallet) {
// If the orig tx was not in block/mempool, none of its spends can be.
assert(!wtx.isConfirmed());
if (!wtx.IsCoinStake()) {
assert(!wtx.isConfirmed());
}
assert(!wtx.InMempool());
// If already conflicted or abandoned, no need to set abandoned
if (!wtx.isConflicted() && !wtx.isAbandoned()) {
Expand Down

0 comments on commit a7f4950

Please sign in to comment.