| 64 | } |
| 65 | |
| 66 | int GetTotalBlocksEstimate(const CCheckpointData& data) |
| 67 | { |
| 68 | const MapCheckpoints& checkpoints = data.mapCheckpoints; |
| 69 | |
| 70 | if (checkpoints.empty()) |
| 71 | return 0; |
| 72 | |
| 73 | return checkpoints.rbegin()->first; |
| 74 | } |
| 75 | |
| 76 | CBlockIndex* GetLastCheckpoint(const CCheckpointData& data) |
| 77 | { |