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

Method SnapshotBlockhash

src/validation.cpp:5145–5153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5143}
5144
5145std::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
5155std::vector<CChainState*> ChainstateManager::GetAll()
5156{

Callers 4

ActivateSnapshotMethod · 0.95
BOOST_AUTO_TEST_CASEFunction · 0.80
BOOST_FIXTURE_TEST_CASEFunction · 0.80
FUZZ_TARGET_INITFunction · 0.80

Calls

no outgoing calls

Tested by 3

BOOST_AUTO_TEST_CASEFunction · 0.64
BOOST_FIXTURE_TEST_CASEFunction · 0.64
FUZZ_TARGET_INITFunction · 0.64