MCPcopy Create free account
hub / github.com/ElementsProject/elements / BlockConnected

Method BlockConnected

src/test/validation_block_tests.cpp:46–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44 }
45
46 void BlockConnected(const std::shared_ptr<const CBlock>& block, const CBlockIndex* pindex) override
47 {
48 BOOST_CHECK_EQUAL(m_expected_tip, block->hashPrevBlock);
49 BOOST_CHECK_EQUAL(m_expected_tip, pindex->pprev->GetBlockHash());
50
51 m_expected_tip = block->GetHash();
52 }
53
54 void BlockDisconnected(const std::shared_ptr<const CBlock>& block, const CBlockIndex* pindex) override
55 {

Callers

nothing calls this directly

Calls 2

GetBlockHashMethod · 0.45
GetHashMethod · 0.45

Tested by

no test coverage detected