1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
crate::ix!();
/**
| Get a block filter index by type. Returns
| nullptr if index has not been initialized
| or was already destroyed.
|
*/
pub fn get_block_filter_index(filter_type: BlockFilterType) -> Amo<BlockFilterIndex> {
todo!();
/*
auto it = g_filter_indexes.find(filter_type);
return it != g_filter_indexes.end() ? &it->second : nullptr;
*/
}
/**
| Iterate over all running block filter
| indexes, invoking fn on each.
|
*/
pub fn for_each_block_filter_index(fn_: fn(_0: &mut BlockFilterIndex) -> ()) {
todo!();
/*
for (auto& entry : g_filter_indexes) fn(entry.second);
*/
}