@@ -334,17 +334,17 @@ void CBlockPolicyEstimator::processTransaction(const CTxMemPoolEntry& entry, boo
334334 mapMemPoolTxs[hash].bucketIndex = feeStats.NewTx (txHeight, (double )feeRate.GetFeePerK ());
335335}
336336
337- void CBlockPolicyEstimator::processBlockTx (unsigned int nBlockHeight, const CTxMemPoolEntry& entry)
337+ void CBlockPolicyEstimator::processBlockTx (unsigned int nBlockHeight, const CTxMemPoolEntry* entry)
338338{
339- if (!removeTx (entry. GetTx ().GetHash ())) {
339+ if (!removeTx (entry-> GetTx ().GetHash ())) {
340340 // This transaction wasn't being tracked for fee estimation
341341 return ;
342342 }
343343
344344 // How many blocks did it take for miners to include this transaction?
345345 // blocksToConfirm is 1-based, so a transaction included in the earliest
346346 // possible block has confirmation count of 1
347- int blocksToConfirm = nBlockHeight - entry. GetHeight ();
347+ int blocksToConfirm = nBlockHeight - entry-> GetHeight ();
348348 if (blocksToConfirm <= 0 ) {
349349 // This can't happen because we don't process transactions from a block with a height
350350 // lower than our greatest seen height
@@ -353,13 +353,13 @@ void CBlockPolicyEstimator::processBlockTx(unsigned int nBlockHeight, const CTxM
353353 }
354354
355355 // Feerates are stored and reported as BTC-per-kb:
356- CFeeRate feeRate (entry. GetFee (), entry. GetTxSize ());
356+ CFeeRate feeRate (entry-> GetFee (), entry-> GetTxSize ());
357357
358358 feeStats.Record (blocksToConfirm, (double )feeRate.GetFeePerK ());
359359}
360360
361361void CBlockPolicyEstimator::processBlock (unsigned int nBlockHeight,
362- std::vector<CTxMemPoolEntry>& entries)
362+ std::vector<const CTxMemPoolEntry* >& entries)
363363{
364364 if (nBlockHeight <= nBestSeenHeight) {
365365 // Ignore side chains and re-orgs; assuming they are random
0 commit comments