@@ -334,17 +334,17 @@ void CBlockPolicyEstimator::processTransaction(const CTxMemPoolEntry& entry, boo
334
334
mapMemPoolTxs[hash].bucketIndex = feeStats.NewTx (txHeight, (double )feeRate.GetFeePerK ());
335
335
}
336
336
337
- void CBlockPolicyEstimator::processBlockTx (unsigned int nBlockHeight, const CTxMemPoolEntry& entry)
337
+ void CBlockPolicyEstimator::processBlockTx (unsigned int nBlockHeight, const CTxMemPoolEntry* entry)
338
338
{
339
- if (!removeTx (entry. GetTx ().GetHash ())) {
339
+ if (!removeTx (entry-> GetTx ().GetHash ())) {
340
340
// This transaction wasn't being tracked for fee estimation
341
341
return ;
342
342
}
343
343
344
344
// How many blocks did it take for miners to include this transaction?
345
345
// blocksToConfirm is 1-based, so a transaction included in the earliest
346
346
// possible block has confirmation count of 1
347
- int blocksToConfirm = nBlockHeight - entry. GetHeight ();
347
+ int blocksToConfirm = nBlockHeight - entry-> GetHeight ();
348
348
if (blocksToConfirm <= 0 ) {
349
349
// This can't happen because we don't process transactions from a block with a height
350
350
// lower than our greatest seen height
@@ -353,13 +353,13 @@ void CBlockPolicyEstimator::processBlockTx(unsigned int nBlockHeight, const CTxM
353
353
}
354
354
355
355
// Feerates are stored and reported as BTC-per-kb:
356
- CFeeRate feeRate (entry. GetFee (), entry. GetTxSize ());
356
+ CFeeRate feeRate (entry-> GetFee (), entry-> GetTxSize ());
357
357
358
358
feeStats.Record (blocksToConfirm, (double )feeRate.GetFeePerK ());
359
359
}
360
360
361
361
void CBlockPolicyEstimator::processBlock (unsigned int nBlockHeight,
362
- std::vector<CTxMemPoolEntry>& entries)
362
+ std::vector<const CTxMemPoolEntry* >& entries)
363
363
{
364
364
if (nBlockHeight <= nBestSeenHeight) {
365
365
// Ignore side chains and re-orgs; assuming they are random
0 commit comments