20 const std::optional<CBlockHeader> block_header = ConsumeDeserializable<CBlockHeader>(fuzzed_data_provider);
25 const uint256 hash = block_header->GetHash();
26 constexpr uint256 u256_max{
"ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"};
28 assert(block_header->GetBlockTime() == block_header->nTime);
29 assert(block_header->IsNull() == (block_header->nBits == 0));
35 CBlock block{*block_header};
36 assert(block.GetBlockHeader().GetHash() == block_header->GetHash());
37 (void)block.ToString();
39 assert(block.GetBlockHeader().GetHash() == mut_block_header.
GetHash());
42 std::optional<CBlockLocator> block_locator = ConsumeDeserializable<CBlockLocator>(fuzzed_data_provider);
44 (void)block_locator->IsNull();
45 block_locator->SetNull();
46 assert(block_locator->IsNull());