| 425 | } |
| 426 | |
| 427 | bool 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 | |
| 444 | BlockFilterIndex* GetBlockFilterIndex(BlockFilterType filter_type) |
| 445 | { |