| 441 | } |
| 442 | |
| 443 | unsigned int TxConfirmStats::NewTx(unsigned int nBlockHeight, double val) |
| 444 | { |
| 445 | unsigned int bucketindex = bucketMap.lower_bound(val)->second; |
| 446 | unsigned int blockIndex = nBlockHeight % unconfTxs.size(); |
| 447 | unconfTxs[blockIndex][bucketindex]++; |
| 448 | return bucketindex; |
| 449 | } |
| 450 | |
| 451 | void TxConfirmStats::removeTx(unsigned int entryHeight, unsigned int nBestSeenHeight, unsigned int bucketindex, bool inBlock) |
| 452 | { |
no test coverage detected