update statistics (does not update nSize) */
| 84 | |
| 85 | /** update statistics (does not update nSize) */ |
| 86 | void AddBlock(unsigned int nHeightIn, uint64_t nTimeIn) |
| 87 | { |
| 88 | if (nBlocks == 0 || nHeightFirst > nHeightIn) |
| 89 | nHeightFirst = nHeightIn; |
| 90 | if (nBlocks == 0 || nTimeFirst > nTimeIn) |
| 91 | nTimeFirst = nTimeIn; |
| 92 | nBlocks++; |
| 93 | if (nHeightIn > nHeightLast) |
| 94 | nHeightLast = nHeightIn; |
| 95 | if (nTimeIn > nTimeLast) |
| 96 | nTimeLast = nTimeIn; |
| 97 | } |
| 98 | }; |
| 99 | |
| 100 | /** Access to the block database (blocks/index/) */ |
no outgoing calls
no test coverage detected