Constructs the index, which becomes available to be queried.
Declared in <index/blockfilterindex.h>
explicit
BlockFilterIndex(
std::unique_ptr<interfaces::Chain> chain,
BlockFilterType filter_type,
size_t n_cache_size,
bool f_memory = false,
bool f_wipe = false);
| Name | Description |
|---|---|
| chain | Interface used to query the blockchain. |
| filter_type | Kind of block filter this index stores. |
| n_cache_size | Size of the database cache, in bytes. |
| f_memory | Keep the database in memory instead of on disk. |
| f_wipe | Erase any existing database before opening. |