| 460 | } |
| 461 | |
| 462 | unsigned int TxConfirmStats::NewTx(unsigned int nBlockHeight, double val) |
| 463 | { |
| 464 | unsigned int bucketindex = bucketMap.lower_bound(val)->second; |
| 465 | unsigned int blockIndex = nBlockHeight % unconfTxs.size(); |
| 466 | unconfTxs[blockIndex][bucketindex]++; |
| 467 | return bucketindex; |
| 468 | } |
| 469 | |
| 470 | void TxConfirmStats::removeTx(unsigned int entryHeight, unsigned int nBestSeenHeight, unsigned int bucketindex, bool inBlock) |
| 471 | { |
no test coverage detected