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

Method GetHistoricalBlockRange

src/validation.cpp:6394–6399  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6392}
6393
6394std::optional<std::pair<const CBlockIndex*, const CBlockIndex*>> ChainstateManager::GetHistoricalBlockRange() const
6395{
6396 const Chainstate* chainstate{HistoricalChainstate()};
6397 if (!chainstate) return {};
6398 return std::make_pair(chainstate->m_chain.Tip(), chainstate->TargetBlock());
6399}
6400
6401util::Result<void> ChainstateManager::ActivateBestChains()
6402{

Callers 2

SendMessagesMethod · 0.80
getblockchaininfoFunction · 0.80

Calls 2

TargetBlockMethod · 0.80
TipMethod · 0.45

Tested by

no test coverage detected