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

Method ClearCurrent

src/policy/fees.cpp:40–50  ·  view source on GitHub ↗

Zero out the data for the current block

Source from the content-addressed store, hash-verified

38
39// Zero out the data for the current block
40void TxConfirmStats::ClearCurrent(unsigned int nBlockHeight)
41{
42 for (unsigned int j = 0; j < buckets.size(); j++) {
43 oldUnconfTxs[j] += unconfTxs[nBlockHeight%unconfTxs.size()][j];
44 unconfTxs[nBlockHeight%unconfTxs.size()][j] = 0;
45 for (unsigned int i = 0; i < curBlockConf.size(); i++)
46 curBlockConf[i][j] = 0;
47 curBlockTxCt[j] = 0;
48 curBlockVal[j] = 0;
49 }
50}
51
52
53void TxConfirmStats::Record(int blocksToConfirm, double val)

Callers 1

processBlockMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected