Skip to content

Commit

Permalink
Clean up tx prioritization when conflict mined
Browse files Browse the repository at this point in the history
  • Loading branch information
casey authored and furszy committed Jan 28, 2021
1 parent e7db9ff commit a8605d2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/txmempool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -578,6 +578,7 @@ void CTxMemPool::removeConflicts(const CTransaction& tx)
const CTransaction& txConflict = *it->second;
if (txConflict != tx) {
removeRecursive(txConflict);
ClearPrioritisation(txConflict.GetHash());
}
}
}
Expand All @@ -588,7 +589,8 @@ void CTxMemPool::removeConflicts(const CTransaction& tx)
if (it != mapSaplingNullifiers.end()) {
const CTransaction& txConflict = *it->second;
if (txConflict != tx) {
removeRecursive(txConflict, removed);
removeRecursive(txConflict);
ClearPrioritisation(txConflict.GetHash());
}
}
}
Expand Down

0 comments on commit a8605d2

Please sign in to comment.