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

Method BlockDisconnected

src/test/validation_block_tests.cpp:69–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67 }
68
69 void BlockDisconnected(const std::shared_ptr<const CBlock>& block, const CBlockIndex* pindex) override
70 {
71 BOOST_CHECK_EQUAL(m_expected_tip, block->GetHash());
72 BOOST_CHECK_EQUAL(m_expected_tip, pindex->GetBlockHash());
73
74 m_expected_tip = block->hashPrevBlock;
75 }
76};
77
78std::shared_ptr<CBlock> MinerTestingSetup::Block(const uint256& prev_hash)

Callers

nothing calls this directly

Calls 2

GetHashMethod · 0.45
GetBlockHashMethod · 0.45

Tested by

no test coverage detected