Track the first time we seen txs in a block that we have been tracking in our mempool. Used to evaluate validity of fee estimates for different targets.
static_assert(MIN_BUCKET_FEERATE>0,"Min feerate must be nonzero");
static_assert(MIN_BUCKET_FEERATE>0,"Min feerate must be nonzero");
minTrackedFee=CFeeRate(MIN_BUCKET_FEERATE);
minTrackedFee=CFeeRate(MIN_BUCKET_FEERATE);
@ -603,6 +603,11 @@ void CBlockPolicyEstimator::processBlock(unsigned int nBlockHeight,
countedTxs++;
countedTxs++;
}
}
if(firstRecordedHeight==0&&countedTxs>0){
firstRecordedHeight=nBestSeenHeight;
LogPrint(BCLog::ESTIMATEFEE,"Blockpolicy first recorded height %u\n",firstRecordedHeight);
}
LogPrint(BCLog::ESTIMATEFEE,"Blockpolicy after updating estimates for %u of %u txs in block, since last block %u of %u tracked, new mempool map size %u\n",
LogPrint(BCLog::ESTIMATEFEE,"Blockpolicy after updating estimates for %u of %u txs in block, since last block %u of %u tracked, new mempool map size %u\n",