mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-19 14:53:43 +01:00
refactor: validation: mark SnapshotBase as const
It does not modify any logical state. This change is required for future const-correctness commits.
This commit is contained in:
@@ -1970,7 +1970,7 @@ Chainstate::Chainstate(
|
||||
m_chainman(chainman),
|
||||
m_from_snapshot_blockhash(from_snapshot_blockhash) {}
|
||||
|
||||
const CBlockIndex* Chainstate::SnapshotBase()
|
||||
const CBlockIndex* Chainstate::SnapshotBase() const
|
||||
{
|
||||
if (!m_from_snapshot_blockhash) return nullptr;
|
||||
if (!m_cached_snapshot_base) m_cached_snapshot_base = Assert(m_chainman.m_blockman.LookupBlockIndex(*m_from_snapshot_blockhash));
|
||||
|
||||
Reference in New Issue
Block a user