| 175 | } |
| 176 | |
| 177 | void 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 |
| 187 | void TxConfirmStats::ClearCurrent(unsigned int nBlockHeight) |