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

Method BlockConnected

src/test/validation_block_tests.cpp:33–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31 }
32
33 void BlockConnected(const std::shared_ptr<const CBlock>& block, const CBlockIndex* pindex, const std::vector<CTransactionRef>& txnConflicted) override
34 {
35 BOOST_CHECK_EQUAL(m_expected_tip, block->hashPrevBlock);
36 BOOST_CHECK_EQUAL(m_expected_tip, pindex->pprev->GetBlockHash());
37
38 m_expected_tip = block->GetHash();
39 }
40
41 void BlockDisconnected(const std::shared_ptr<const CBlock>& block) override
42 {

Callers

nothing calls this directly

Calls 2

GetBlockHashMethod · 0.45
GetHashMethod · 0.45

Tested by

no test coverage detected