MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / HighestTargetTracked

Method HighestTargetTracked

src/policy/fees.cpp:711–727  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

709}
710
711unsigned int CBlockPolicyEstimator::HighestTargetTracked(FeeEstimateHorizon horizon) const
712{
713 switch (horizon) {
714 case FeeEstimateHorizon::SHORT_HALFLIFE: {
715 return shortStats->GetMaxConfirms();
716 }
717 case FeeEstimateHorizon::MED_HALFLIFE: {
718 return feeStats->GetMaxConfirms();
719 }
720 case FeeEstimateHorizon::LONG_HALFLIFE: {
721 return longStats->GetMaxConfirms();
722 }
723 default: {
724 throw std::out_of_range("CBlockPolicyEstimator::HighestTargetTracked unknown FeeEstimateHorizon");
725 }
726 }
727}
728
729unsigned int CBlockPolicyEstimator::BlockSpan() const
730{

Callers 3

GetDiscardRateFunction · 0.80
ParseConfirmTargetFunction · 0.80
estimaterawfeeFunction · 0.80

Calls 1

GetMaxConfirmsMethod · 0.80

Tested by

no test coverage detected