Bitcoin Core 28.99.0
P2P Digital Currency
Functions | Variables
blockfilter.cpp File Reference
#include <mutex>
#include <set>
#include <blockfilter.h>
#include <crypto/siphash.h>
#include <hash.h>
#include <primitives/block.h>
#include <primitives/transaction.h>
#include <script/script.h>
#include <streams.h>
#include <undo.h>
#include <util/golombrice.h>
#include <util/string.h>
Include dependency graph for blockfilter.cpp:

Go to the source code of this file.

Functions

const std::string & BlockFilterTypeName (BlockFilterType filter_type)
 Get the human-readable name for a filter type. More...
 
bool BlockFilterTypeByName (const std::string &name, BlockFilterType &filter_type)
 Find a filter type by its human-readable name. More...
 
const std::set< BlockFilterType > & AllBlockFilterTypes ()
 Get a list of known filter types. More...
 
const std::string & ListBlockFilterTypes ()
 Get a comma-separated list of known filter type names. More...
 
static GCSFilter::ElementSet BasicFilterElements (const CBlock &block, const CBlockUndo &block_undo)
 

Variables

static const std::map< BlockFilterType, std::string > g_filter_types
 

Function Documentation

◆ AllBlockFilterTypes()

const std::set< BlockFilterType > & AllBlockFilterTypes ( )

Get a list of known filter types.

Definition at line 164 of file blockfilter.cpp.

Here is the caller graph for this function:

◆ BasicFilterElements()

static GCSFilter::ElementSet BasicFilterElements ( const CBlock block,
const CBlockUndo block_undo 
)
static

Definition at line 185 of file blockfilter.cpp.

Here is the caller graph for this function:

◆ BlockFilterTypeByName()

bool BlockFilterTypeByName ( const std::string &  name,
BlockFilterType filter_type 
)

Find a filter type by its human-readable name.

Definition at line 154 of file blockfilter.cpp.

Here is the caller graph for this function:

◆ BlockFilterTypeName()

const std::string & BlockFilterTypeName ( BlockFilterType  filter_type)

Get the human-readable name for a filter type.

Returns empty string for unknown types.

Definition at line 147 of file blockfilter.cpp.

Here is the caller graph for this function:

◆ ListBlockFilterTypes()

const std::string & ListBlockFilterTypes ( )

Get a comma-separated list of known filter type names.

Definition at line 178 of file blockfilter.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ g_filter_types

const std::map<BlockFilterType, std::string> g_filter_types
static
Initial value:

Definition at line 21 of file blockfilter.cpp.