@@ -610,11 +610,11 @@ void CBlockPolicyEstimator::processTransaction(const CTxMemPoolEntry& entry, boo
610
610
CFeeRate feeRate (entry.GetFee (), entry.GetTxSize ());
611
611
612
612
mapMemPoolTxs[hash].blockHeight = txHeight;
613
- unsigned int bucketIndex = feeStats->NewTx (txHeight, ( double ) feeRate.GetFeePerK ());
613
+ unsigned int bucketIndex = feeStats->NewTx (txHeight, static_cast < double >( feeRate.GetFeePerK () ));
614
614
mapMemPoolTxs[hash].bucketIndex = bucketIndex;
615
- unsigned int bucketIndex2 = shortStats->NewTx (txHeight, ( double ) feeRate.GetFeePerK ());
615
+ unsigned int bucketIndex2 = shortStats->NewTx (txHeight, static_cast < double >( feeRate.GetFeePerK () ));
616
616
assert (bucketIndex == bucketIndex2);
617
- unsigned int bucketIndex3 = longStats->NewTx (txHeight, ( double ) feeRate.GetFeePerK ());
617
+ unsigned int bucketIndex3 = longStats->NewTx (txHeight, static_cast < double >( feeRate.GetFeePerK () ));
618
618
assert (bucketIndex == bucketIndex3);
619
619
}
620
620
@@ -640,9 +640,9 @@ bool CBlockPolicyEstimator::processBlockTx(unsigned int nBlockHeight, const CTxM
640
640
// Feerates are stored and reported as BTC-per-kb:
641
641
CFeeRate feeRate (entry->GetFee (), entry->GetTxSize ());
642
642
643
- feeStats->Record (blocksToConfirm, ( double ) feeRate.GetFeePerK ());
644
- shortStats->Record (blocksToConfirm, ( double ) feeRate.GetFeePerK ());
645
- longStats->Record (blocksToConfirm, ( double ) feeRate.GetFeePerK ());
643
+ feeStats->Record (blocksToConfirm, static_cast < double >( feeRate.GetFeePerK () ));
644
+ shortStats->Record (blocksToConfirm, static_cast < double >( feeRate.GetFeePerK () ));
645
+ longStats->Record (blocksToConfirm, static_cast < double >( feeRate.GetFeePerK () ));
646
646
return true ;
647
647
}
648
648
0 commit comments