MCPcopy Create free account
hub / github.com/ElementsProject/elements / GetAll

Method GetAll

src/validation.cpp:5155–5169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5153}
5154
5155std::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
5171CChainState& ChainstateManager::InitializeChainstate(
5172 CTxMemPool* mempool, const std::optional<uint256>& snapshot_blockhash)

Callers 10

UnloadMethod · 0.95
ShutdownFunction · 0.80
AppInitMainFunction · 0.80
BOOST_FIXTURE_TEST_CASEFunction · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80
BOOST_FIXTURE_TEST_CASEFunction · 0.80
LoadChainstateFunction · 0.80
VerifyLoadedChainstateFunction · 0.80
LoadBlockIndexMethod · 0.80
ThreadImportFunction · 0.80

Calls 2

push_backMethod · 0.45
getMethod · 0.45

Tested by 3

BOOST_FIXTURE_TEST_CASEFunction · 0.64
BOOST_AUTO_TEST_CASEFunction · 0.64
BOOST_FIXTURE_TEST_CASEFunction · 0.64