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

Method LookupFilterHashRange

src/index/blockfilterindex.cpp:437–452  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

435}
436
437bool BlockFilterIndex::LookupFilterHashRange(int start_height, const CBlockIndex* stop_index,
438 std::vector<uint256>& hashes_out) const
439
440{
441 std::vector<DBVal> entries;
442 if (!LookupRange(*m_db, m_name, start_height, stop_index, entries)) {
443 return false;
444 }
445
446 hashes_out.clear();
447 hashes_out.reserve(entries.size());
448 for (const auto& entry : entries) {
449 hashes_out.push_back(entry.hash);
450 }
451 return true;
452}
453
454BlockFilterIndex* GetBlockFilterIndex(BlockFilterType filter_type)
455{

Callers 3

ProcessGetCFHeadersMethod · 0.80
CheckFilterLookupsFunction · 0.80
BOOST_FIXTURE_TEST_CASEFunction · 0.80

Calls 5

LookupRangeFunction · 0.85
clearMethod · 0.45
reserveMethod · 0.45
sizeMethod · 0.45
push_backMethod · 0.45

Tested by 2

CheckFilterLookupsFunction · 0.64
BOOST_FIXTURE_TEST_CASEFunction · 0.64