MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / SnapshotBase

Method SnapshotBase

src/validation.cpp:1889–1894  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1887}
1888
1889const CBlockIndex* Chainstate::SnapshotBase() const
1890{
1891 if (!m_from_snapshot_blockhash) return nullptr;
1892 if (!m_cached_snapshot_base) m_cached_snapshot_base = Assert(m_chainman.m_blockman.LookupBlockIndex(*m_from_snapshot_blockhash));
1893 return m_cached_snapshot_base;
1894}
1895
1896const CBlockIndex* Chainstate::TargetBlock() const
1897{

Callers 6

CheckBlockIndexMethod · 0.80
validation.cppFile · 0.80
BOOST_FIXTURE_TEST_CASEFunction · 0.80
utxo_snapshot_fuzzFunction · 0.80

Calls 1

LookupBlockIndexMethod · 0.80

Tested by 2

BOOST_FIXTURE_TEST_CASEFunction · 0.64
utxo_snapshot_fuzzFunction · 0.64