MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / LookupFilterHashRange

Method LookupFilterHashRange

src/index/blockfilterindex.cpp:427–442  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

425}
426
427bool BlockFilterIndex::LookupFilterHashRange(int start_height, const CBlockIndex* stop_index,
428 std::vector<uint256>& hashes_out) const
429
430{
431 std::vector<DBVal> entries;
432 if (!LookupRange(*m_db, m_name, start_height, stop_index, entries)) {
433 return false;
434 }
435
436 hashes_out.clear();
437 hashes_out.reserve(entries.size());
438 for (const auto& entry : entries) {
439 hashes_out.push_back(entry.hash);
440 }
441 return true;
442}
443
444BlockFilterIndex* GetBlockFilterIndex(BlockFilterType filter_type)
445{

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