![]() |
Bitcoin Core
31.0.0
P2P Digital Currency
|
#include <attributes.h>#include <flatfile.h>#include <index/base.h>#include <interfaces/chain.h>#include <sync.h>#include <uint256.h>#include <util/hasher.h>#include <cstddef>#include <cstdint>#include <functional>#include <memory>#include <optional>#include <unordered_map>#include <vector>Go to the source code of this file.
Classes | |
| class | BlockFilterIndex |
| Interval between compact filter checkpoints. More... | |
Functions | |
| BlockFilterIndex * | GetBlockFilterIndex (BlockFilterType filter_type) |
| Get a block filter index by type. More... | |
| void | ForEachBlockFilterIndex (std::function< void(BlockFilterIndex &)> fn) |
| Iterate over all running block filter indexes, invoking fn on each. More... | |
| bool | InitBlockFilterIndex (std::function< std::unique_ptr< interfaces::Chain >()> make_chain, BlockFilterType filter_type, size_t n_cache_size, bool f_memory=false, bool f_wipe=false) |
| Initialize a block filter index for the given type if one does not already exist. More... | |
| bool | DestroyBlockFilterIndex (BlockFilterType filter_type) |
| Destroy the block filter index with the given type. More... | |
| void | DestroyAllBlockFilterIndexes () |
| Destroy all open block filter indexes. More... | |
| void DestroyAllBlockFilterIndexes | ( | ) |
Destroy all open block filter indexes.
Definition at line 462 of file blockfilterindex.cpp.
| bool DestroyBlockFilterIndex | ( | BlockFilterType | filter_type | ) |
Destroy the block filter index with the given type.
Returns false if no such index exists. This just releases the allocated memory and closes the database connection, it does not delete the index data.
Definition at line 457 of file blockfilterindex.cpp.
| void ForEachBlockFilterIndex | ( | std::function< void(BlockFilterIndex &)> | fn | ) |
Iterate over all running block filter indexes, invoking fn on each.
Definition at line 442 of file blockfilterindex.cpp.
| BlockFilterIndex* GetBlockFilterIndex | ( | BlockFilterType | filter_type | ) |
Get a block filter index by type.
Returns nullptr if index has not been initialized or was already destroyed.
Definition at line 436 of file blockfilterindex.cpp.
| bool InitBlockFilterIndex | ( | std::function< std::unique_ptr< interfaces::Chain >()> | make_chain, |
| BlockFilterType | filter_type, | ||
| size_t | n_cache_size, | ||
| bool | f_memory = false, |
||
| bool | f_wipe = false |
||
| ) |
Initialize a block filter index for the given type if one does not already exist.
Returns true if a new index is created and false if one has already been initialized.
Definition at line 447 of file blockfilterindex.cpp.
1.8.14