MCPcopy Create free account
hub / github.com/ElementsProject/elements / HighestTargetTracked

Method HighestTargetTracked

src/policy/fees.cpp:705–720  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

703}
704
705unsigned int CBlockPolicyEstimator::HighestTargetTracked(FeeEstimateHorizon horizon) const
706{
707 LOCK(m_cs_fee_estimator);
708 switch (horizon) {
709 case FeeEstimateHorizon::SHORT_HALFLIFE: {
710 return shortStats->GetMaxConfirms();
711 }
712 case FeeEstimateHorizon::MED_HALFLIFE: {
713 return feeStats->GetMaxConfirms();
714 }
715 case FeeEstimateHorizon::LONG_HALFLIFE: {
716 return longStats->GetMaxConfirms();
717 }
718 } // no default case, so the compiler can warn about missing cases
719 assert(false);
720}
721
722unsigned int CBlockPolicyEstimator::BlockSpan() const
723{

Callers 4

FUZZ_TARGET_INITFunction · 0.80
estimatesmartfeeFunction · 0.80
estimaterawfeeFunction · 0.80
estimateMaxBlocksMethod · 0.80

Calls 1

GetMaxConfirmsMethod · 0.80

Tested by 1

FUZZ_TARGET_INITFunction · 0.64