File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1970,7 +1970,7 @@ Chainstate::Chainstate(
1970
1970
m_chainman(chainman),
1971
1971
m_from_snapshot_blockhash(from_snapshot_blockhash) {}
1972
1972
1973
- const CBlockIndex* Chainstate::SnapshotBase ()
1973
+ const CBlockIndex* Chainstate::SnapshotBase () const
1974
1974
{
1975
1975
if (!m_from_snapshot_blockhash) return nullptr ;
1976
1976
if (!m_cached_snapshot_base) m_cached_snapshot_base = Assert (m_chainman.m_blockman .LookupBlockIndex (*m_from_snapshot_blockhash));
Original file line number Diff line number Diff line change @@ -532,7 +532,7 @@ class Chainstate
532
532
bool m_disabled GUARDED_BY (::cs_main) {false };
533
533
534
534
// ! Cached result of LookupBlockIndex(*m_from_snapshot_blockhash)
535
- const CBlockIndex* m_cached_snapshot_base GUARDED_BY (::cs_main) {nullptr };
535
+ mutable const CBlockIndex* m_cached_snapshot_base GUARDED_BY (::cs_main){nullptr };
536
536
537
537
public:
538
538
// ! Reference to a BlockManager instance which itself is shared across all
@@ -596,7 +596,7 @@ class Chainstate
596
596
*
597
597
* nullptr if this chainstate was not created from a snapshot.
598
598
*/
599
- const CBlockIndex* SnapshotBase () EXCLUSIVE_LOCKS_REQUIRED(::cs_main);
599
+ const CBlockIndex* SnapshotBase () const EXCLUSIVE_LOCKS_REQUIRED(::cs_main);
600
600
601
601
/* *
602
602
* The set of all CBlockIndex entries that have as much work as our current
You can’t perform that action at this time.
0 commit comments