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

Method ComputeHeader

src/blockfilter.cpp:267–277  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

265}
266
267uint256 BlockFilter::ComputeHeader(const uint256& prev_header) const
268{
269 const uint256& filter_hash = GetHash();
270
271 uint256 result;
272 CHash256()
273 .Write(filter_hash)
274 .Write(prev_header)
275 .Finalize(result);
276 return result;
277}

Callers 4

CheckFilterLookupsFunction · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80
FUZZ_TARGETFunction · 0.80
WriteBlockMethod · 0.80

Calls 3

CHash256Class · 0.85
FinalizeMethod · 0.45
WriteMethod · 0.45

Tested by 3

CheckFilterLookupsFunction · 0.64
BOOST_AUTO_TEST_CASEFunction · 0.64
FUZZ_TARGETFunction · 0.64