| 1894 | } |
| 1895 | |
| 1896 | const CBlockIndex* Chainstate::TargetBlock() const |
| 1897 | { |
| 1898 | if (!m_target_blockhash) return nullptr; |
| 1899 | if (!m_cached_target_block) m_cached_target_block = Assert(m_chainman.m_blockman.LookupBlockIndex(*m_target_blockhash)); |
| 1900 | return m_cached_target_block; |
| 1901 | } |
| 1902 | |
| 1903 | void Chainstate::SetTargetBlock(CBlockIndex* block) |
| 1904 | { |
no test coverage detected