Skip to content

Commit

Permalink
fixup: for activation-state based hasher
Browse files Browse the repository at this point in the history
  • Loading branch information
domob1812 committed Jan 19, 2021
1 parent fdcf0a1 commit 93b7179
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions divi/src/txmempool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ void CTxMemPool::remove(const CTransaction& origTx, std::list<CTransaction>& rem
{
LOCK(cs);
const ActivationState as(chainActive.Tip());
const TransactionUtxoHasher utxoHasher;
const TransactionUtxoHasher utxoHasher(as);
std::deque<uint256> txToRemove;
txToRemove.push_back(origTx.GetHash());
if (fRecursive && !mapTx.count(origTx.GetHash())) {
Expand Down Expand Up @@ -797,7 +797,7 @@ bool CTxMemPool::lookupOutpoint(const uint256& hash, CTransaction& result) const
mempool is not allowed in a time window "around" the fork, so that
this should be good enough. */
const ActivationState as(chainActive.Tip());
const TransactionUtxoHasher utxoHasher;
const TransactionUtxoHasher utxoHasher(as);

/* The TransactionUtxoHasher can only tell us the txid to use once we
know the transaction already. Thus we check both txid and bare txid
Expand Down

0 comments on commit 93b7179

Please sign in to comment.