MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / UpdatedBlockTip

Method UpdatedBlockTip

src/test/validation_block_tests.cpp:28–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26 TestSubscriber(uint256 tip) : m_expected_tip(tip) {}
27
28 void UpdatedBlockTip(const CBlockIndex* pindexNew, const CBlockIndex* pindexFork, bool fInitialDownload) override
29 {
30 BOOST_CHECK_EQUAL(m_expected_tip, pindexNew->GetBlockHash());
31 }
32
33 void BlockConnected(const std::shared_ptr<const CBlock>& block, const CBlockIndex* pindex, const std::vector<CTransactionRef>& txnConflicted) override
34 {

Callers

nothing calls this directly

Calls 1

GetBlockHashMethod · 0.45

Tested by

no test coverage detected