| 1887 | } |
| 1888 | |
| 1889 | const 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 | |
| 1896 | const CBlockIndex* Chainstate::TargetBlock() const |
| 1897 | { |