| 197 | } |
| 198 | |
| 199 | std::vector<CBlockIndex*> BlockManager::GetAllBlockIndices() |
| 200 | { |
| 201 | AssertLockHeld(cs_main); |
| 202 | std::vector<CBlockIndex*> rv; |
| 203 | rv.reserve(m_block_index.size()); |
| 204 | for (auto& [_, block_index] : m_block_index) { |
| 205 | rv.push_back(&block_index); |
| 206 | } |
| 207 | return rv; |
| 208 | } |
| 209 | |
| 210 | CBlockIndex* BlockManager::LookupBlockIndex(const uint256& hash) |
| 211 | { |
no test coverage detected