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

Method UpdateMovingAverages

src/policy/fees.cpp:210–221  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

208}
209
210void TxConfirmStats::UpdateMovingAverages()
211{
212 assert(confAvg.size() == failAvg.size());
213 for (unsigned int j = 0; j < buckets.size(); j++) {
214 for (unsigned int i = 0; i < confAvg.size(); i++) {
215 confAvg[i][j] *= decay;
216 failAvg[i][j] *= decay;
217 }
218 m_feerate_avg[j] *= decay;
219 txCtAvg[j] *= decay;
220 }
221}
222
223// returns -1 on error conditions
224double TxConfirmStats::EstimateMedianVal(int confTarget, double sufficientTxVal,

Callers 1

processBlockMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected