| 208 | } |
| 209 | |
| 210 | CBlockIndex* BlockManager::LookupBlockIndex(const uint256& hash) |
| 211 | { |
| 212 | AssertLockHeld(cs_main); |
| 213 | BlockMap::iterator it = m_block_index.find(hash); |
| 214 | return it == m_block_index.end() ? nullptr : &it->second; |
| 215 | } |
| 216 | |
| 217 | const CBlockIndex* BlockManager::LookupBlockIndex(const uint256& hash) const |
| 218 | { |