| 37 | static FlatFileSeq UndoFileSeq(); |
| 38 | |
| 39 | CBlockIndex* BlockManager::LookupBlockIndex(const uint256& hash) const |
| 40 | { |
| 41 | AssertLockHeld(cs_main); |
| 42 | BlockMap::const_iterator it = m_block_index.find(hash); |
| 43 | return it == m_block_index.end() ? nullptr : it->second; |
| 44 | } |
| 45 | |
| 46 | CBlockIndex* BlockManager::AddToBlockIndex(const CBlockHeader& block) |
| 47 | { |