| 435 | } |
| 436 | |
| 437 | bool 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 | |
| 454 | BlockFilterIndex* GetBlockFilterIndex(BlockFilterType filter_type) |
| 455 | { |