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

Method MaxUsableEstimate

src/policy/fees.cpp:740–744  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

738}
739
740unsigned int CBlockPolicyEstimator::MaxUsableEstimate() const
741{
742 // Block spans are divided by 2 to make sure there are enough potential failing data points for the estimate
743 return std::min(longStats->GetMaxConfirms(), std::max(BlockSpan(), HistoricalBlockSpan()) / 2);
744}
745
746/** Return a fee estimate at the required successThreshold from the shortest
747 * time horizon which tracks confirmations up to the desired target. If

Callers

nothing calls this directly

Calls 1

GetMaxConfirmsMethod · 0.80

Tested by

no test coverage detected