| 5143 | } |
| 5144 | |
| 5145 | std::optional<uint256> ChainstateManager::SnapshotBlockhash() const |
| 5146 | { |
| 5147 | LOCK(::cs_main); |
| 5148 | if (m_active_chainstate && m_active_chainstate->m_from_snapshot_blockhash) { |
| 5149 | // If a snapshot chainstate exists, it will always be our active. |
| 5150 | return m_active_chainstate->m_from_snapshot_blockhash; |
| 5151 | } |
| 5152 | return std::nullopt; |
| 5153 | } |
| 5154 | |
| 5155 | std::vector<CChainState*> ChainstateManager::GetAll() |
| 5156 | { |
no outgoing calls