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

Method LookupFilter

src/index/blockfilterindex.cpp:377–385  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

375}
376
377bool BlockFilterIndex::LookupFilter(const CBlockIndex* block_index, BlockFilter& filter_out) const
378{
379 DBVal entry;
380 if (!LookupOne(*m_db, block_index, entry)) {
381 return false;
382 }
383
384 return ReadFilterFromDisk(entry.pos, filter_out);
385}
386
387bool BlockFilterIndex::LookupFilterHeader(const CBlockIndex* block_index, uint256& header_out)
388{

Callers 4

rest_block_filterFunction · 0.80
CheckFilterLookupsFunction · 0.80
BOOST_FIXTURE_TEST_CASEFunction · 0.80
getblockfilterFunction · 0.80

Calls 1

LookupOneFunction · 0.85

Tested by 2

CheckFilterLookupsFunction · 0.64
BOOST_FIXTURE_TEST_CASEFunction · 0.64