Skip to content

Commit 93b7179

Browse files
committed
fixup: for activation-state based hasher
1 parent fdcf0a1 commit 93b7179

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

divi/src/txmempool.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ void CTxMemPool::remove(const CTransaction& origTx, std::list<CTransaction>& rem
572572
{
573573
LOCK(cs);
574574
const ActivationState as(chainActive.Tip());
575-
const TransactionUtxoHasher utxoHasher;
575+
const TransactionUtxoHasher utxoHasher(as);
576576
std::deque<uint256> txToRemove;
577577
txToRemove.push_back(origTx.GetHash());
578578
if (fRecursive && !mapTx.count(origTx.GetHash())) {
@@ -797,7 +797,7 @@ bool CTxMemPool::lookupOutpoint(const uint256& hash, CTransaction& result) const
797797
mempool is not allowed in a time window "around" the fork, so that
798798
this should be good enough. */
799799
const ActivationState as(chainActive.Tip());
800-
const TransactionUtxoHasher utxoHasher;
800+
const TransactionUtxoHasher utxoHasher(as);
801801

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

0 commit comments

Comments
 (0)