| 11 | // class CBlockFileInfo |
| 12 | |
| 13 | string CBlockFileInfo::ToString() const { |
| 14 | return strprintf("CBlockFileInfo(blocks=%u, size=%u, heights=%u...%u, time=%s...%s)", nBlocks, |
| 15 | nSize, nHeightFirst, nHeightLast, |
| 16 | DateTimeStrFormat("%Y-%m-%d", nTimeFirst).c_str(), |
| 17 | DateTimeStrFormat("%Y-%m-%d", nTimeLast).c_str()); |
| 18 | } |
| 19 | |
| 20 | void CBlockFileInfo::AddBlock(uint32_t nHeightIn, uint64_t nTimeIn) { |
| 21 | if (nBlocks == 0 || nHeightFirst > nHeightIn) |
no test coverage detected