| 452 | } |
| 453 | |
| 454 | BlockFilterIndex* GetBlockFilterIndex(BlockFilterType filter_type) |
| 455 | { |
| 456 | auto it = g_filter_indexes.find(filter_type); |
| 457 | return it != g_filter_indexes.end() ? &it->second : nullptr; |
| 458 | } |
| 459 | |
| 460 | void ForEachBlockFilterIndex(std::function<void (BlockFilterIndex&)> fn) |
| 461 | { |