MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / ClearCurrent

Method ClearCurrent

src/policy/fees.cpp:208–214  ·  view source on GitHub ↗

Roll the unconfirmed txs circular buffer

Source from the content-addressed store, hash-verified

206
207// Roll the unconfirmed txs circular buffer
208void TxConfirmStats::ClearCurrent(unsigned int nBlockHeight)
209{
210 for (unsigned int j = 0; j < buckets.size(); j++) {
211 oldUnconfTxs[j] += unconfTxs[nBlockHeight%unconfTxs.size()][j];
212 unconfTxs[nBlockHeight%unconfTxs.size()][j] = 0;
213 }
214}
215
216
217void TxConfirmStats::Record(int blocksToConfirm, double val)

Callers 1

processBlockMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected