Bitcoin
Classes | Functions
blockfilterindex.h File Reference
#include <blockfilter.h>
#include <chain.h>
#include <flatfile.h>
#include <index/base.h>

Go to the source code of this file.

Classes

class  BlockFilterIndex
 

Functions

BlockFilterIndexGetBlockFilterIndex (BlockFilterType filter_type)
 
void ForEachBlockFilterIndex (std::function< void(BlockFilterIndex &)> fn)
 
bool InitBlockFilterIndex (BlockFilterType filter_type, size_t n_cache_size, bool f_memory=false, bool f_wipe=false)
 
bool DestroyBlockFilterIndex (BlockFilterType filter_type)
 
void DestroyAllBlockFilterIndexes ()
 

Function Documentation

◆ DestroyAllBlockFilterIndexes()

void DestroyAllBlockFilterIndexes ( )

Destroy all open block filter indexes.

◆ DestroyBlockFilterIndex()

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.

◆ ForEachBlockFilterIndex()

void ForEachBlockFilterIndex ( std::function< void(BlockFilterIndex &)>  fn)

Iterate over all running block filter indexes, invoking fn on each.

◆ GetBlockFilterIndex()

BlockFilterIndex* GetBlockFilterIndex ( BlockFilterType  filter_type)

Get a block filter index by type. Returns nullptr if index has not been initialized or was already destroyed.

◆ InitBlockFilterIndex()

bool InitBlockFilterIndex ( 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.