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

Function GoodBlock

src/test/validation_block_tests.cpp:82–85  ·  view source on GitHub ↗

construct a valid block

Source from the content-addressed store, hash-verified

80
81// construct a valid block
82const std::shared_ptr<const CBlock> GoodBlock(const uint256& prev_hash)
83{
84 return FinalizeBlock(Block(prev_hash));
85}
86
87// construct an invalid block (but with a valid header)
88const std::shared_ptr<const CBlock> BadBlock(const uint256& prev_hash)

Callers 1

BuildChainFunction · 0.85

Calls 2

FinalizeBlockFunction · 0.85
BlockFunction · 0.70

Tested by

no test coverage detected