| 5153 | } |
| 5154 | |
| 5155 | std::vector<CChainState*> ChainstateManager::GetAll() |
| 5156 | { |
| 5157 | LOCK(::cs_main); |
| 5158 | std::vector<CChainState*> out; |
| 5159 | |
| 5160 | if (!IsSnapshotValidated() && m_ibd_chainstate) { |
| 5161 | out.push_back(m_ibd_chainstate.get()); |
| 5162 | } |
| 5163 | |
| 5164 | if (m_snapshot_chainstate) { |
| 5165 | out.push_back(m_snapshot_chainstate.get()); |
| 5166 | } |
| 5167 | |
| 5168 | return out; |
| 5169 | } |
| 5170 | |
| 5171 | CChainState& ChainstateManager::InitializeChainstate( |
| 5172 | CTxMemPool* mempool, const std::optional<uint256>& snapshot_blockhash) |