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

Method ClearCurrent

src/policy/fees.cpp:187–193  ·  view source on GitHub ↗

Roll the unconfirmed txs circular buffer

Source from the content-addressed store, hash-verified

185
186// Roll the unconfirmed txs circular buffer
187void TxConfirmStats::ClearCurrent(unsigned int nBlockHeight)
188{
189 for (unsigned int j = 0; j < buckets.size(); j++) {
190 oldUnconfTxs[j] += unconfTxs[nBlockHeight % unconfTxs.size()][j];
191 unconfTxs[nBlockHeight%unconfTxs.size()][j] = 0;
192 }
193}
194
195
196void TxConfirmStats::Record(int blocksToConfirm, double feerate)

Callers 1

processBlockMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected