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

Method resizeInMemoryCounters

src/policy/fees.cpp:177–184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

175}
176
177void TxConfirmStats::resizeInMemoryCounters(size_t newbuckets) {
178 // newbuckets must be passed in because the buckets referred to during Read have not been updated yet.
179 unconfTxs.resize(GetMaxConfirms());
180 for (unsigned int i = 0; i < unconfTxs.size(); i++) {
181 unconfTxs[i].resize(newbuckets);
182 }
183 oldUnconfTxs.resize(newbuckets);
184}
185
186// Roll the unconfirmed txs circular buffer
187void TxConfirmStats::ClearCurrent(unsigned int nBlockHeight)

Callers

nothing calls this directly

Calls 2

resizeMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected