Skip to content

Commit f92bc9a

Browse files
committed
fixup: for base hasher
1 parent 33efb9d commit f92bc9a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

divi/src/BlockMemoryPoolTransactionCollector.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,6 @@ std::vector<PrioritizedTransactionData> BlockMemoryPoolTransactionCollector::Pri
290290
this should be good enough. */
291291
const ActivationState as(chainActive.Tip());
292292
const TransactionUtxoHasher utxoHasher(as);
293-
const bool segwitLight = as.IsActive(Fork::SegwitLight);
294293

295294
uint64_t nBlockSize = 1000;
296295
int nBlockSigOps = 100;
@@ -354,8 +353,7 @@ std::vector<PrioritizedTransactionData> BlockMemoryPoolTransactionCollector::Pri
354353
}
355354

356355
// Add transactions that depend on this one to the priority queue
357-
const uint256 outpointHash = (segwitLight ? tx.GetBareTxid() : tx.GetHash());
358-
AddDependingTransactionsToPriorityQueue(dependentTransactions, outpointHash, vecPriority, comparer);
356+
AddDependingTransactionsToPriorityQueue(dependentTransactions, utxoHasher.GetUtxoHash(tx), vecPriority, comparer);
359357
}
360358

361359
LogPrintf("CreateNewBlock(): total size %u\n", nBlockSize);

0 commit comments

Comments
 (0)