Zero out the data for the current block
| 38 | |
| 39 | // Zero out the data for the current block |
| 40 | void 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 | |
| 53 | void TxConfirmStats::Record(int blocksToConfirm, double val) |