| 426 | } |
| 427 | |
| 428 | CBlockIndex* BlockManager::GetLastCheckpoint(const CCheckpointData& data) |
| 429 | { |
| 430 | const MapCheckpoints& checkpoints = data.mapCheckpoints; |
| 431 | |
| 432 | for (const MapCheckpoints::value_type& i : reverse_iterate(checkpoints)) { |
| 433 | const uint256& hash = i.second; |
| 434 | CBlockIndex* pindex = LookupBlockIndex(hash); |
| 435 | if (pindex) { |
| 436 | return pindex; |
| 437 | } |
| 438 | } |
| 439 | return nullptr; |
| 440 | } |
| 441 | |
| 442 | bool IsBlockPruned(const CBlockIndex* pblockindex) |
| 443 | { |
no test coverage detected