Bitcoin Core  0.18.99
P2P Digital Currency
Classes | Enumerations | Functions | Variables
blockfilter.h File Reference
#include <stdint.h>
#include <string>
#include <unordered_set>
#include <vector>
#include <primitives/block.h>
#include <serialize.h>
#include <uint256.h>
#include <undo.h>
#include <util/bytevectorhash.h>
Include dependency graph for blockfilter.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  GCSFilter
 This implements a Golomb-coded set as defined in BIP 158. More...
 
struct  GCSFilter::Params
 
class  BlockFilter
 Complete block filter struct as defined in BIP 157. More...
 

Enumerations

enum  BlockFilterType : uint8_t { BlockFilterType::BASIC = 0, BlockFilterType::INVALID = 255 }
 

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::vector< 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...
 

Variables

constexpr uint8_t BASIC_FILTER_P = 19
 
constexpr uint32_t BASIC_FILTER_M = 784931
 

Enumeration Type Documentation

◆ BlockFilterType

enum BlockFilterType : uint8_t
strong
Enumerator
BASIC 
INVALID 

Definition at line 87 of file blockfilter.h.

Function Documentation

◆ AllBlockFilterTypes()

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

Get a list of known filter types.

Definition at line 224 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 214 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 207 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 239 of file blockfilter.cpp.

Here is the caller graph for this function:

Variable Documentation

◆ BASIC_FILTER_M

constexpr uint32_t BASIC_FILTER_M = 784931

Definition at line 85 of file blockfilter.h.

◆ BASIC_FILTER_P

constexpr uint8_t BASIC_FILTER_P = 19

Definition at line 84 of file blockfilter.h.