update statistics (does not update nSize) */
| 71 | |
| 72 | /** update statistics (does not update nSize) */ |
| 73 | void AddBlock(unsigned int nHeightIn, uint64_t nTimeIn) { |
| 74 | if (nBlocks==0 || nHeightFirst > nHeightIn) |
| 75 | nHeightFirst = nHeightIn; |
| 76 | if (nBlocks==0 || nTimeFirst > nTimeIn) |
| 77 | nTimeFirst = nTimeIn; |
| 78 | nBlocks++; |
| 79 | if (nHeightIn > nHeightLast) |
| 80 | nHeightLast = nHeightIn; |
| 81 | if (nTimeIn > nTimeLast) |
| 82 | nTimeLast = nTimeIn; |
| 83 | } |
| 84 | }; |
| 85 | |
| 86 | struct CDiskBlockPos |