Bitcoin
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>

Go to the source code of this file.

Classes

class  GCSFilter
 
struct  GCSFilter::Params
 
class  BlockFilter
 

Enumerations

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

Functions

const std::string & BlockFilterTypeName (BlockFilterType filter_type)
 
bool BlockFilterTypeByName (const std::string &name, BlockFilterType &filter_type)
 
const std::vector< BlockFilterType > & AllBlockFilterTypes ()
 
const std::string & ListBlockFilterTypes ()
 

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 

Function Documentation

◆ AllBlockFilterTypes()

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

Get a list of known filter types.

◆ BlockFilterTypeByName()

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

Find a filter type by its human-readable name.

◆ BlockFilterTypeName()

const std::string& BlockFilterTypeName ( BlockFilterType  filter_type)

Get the human-readable name for a filter type. Returns empty string for unknown types.

◆ ListBlockFilterTypes()

const std::string& ListBlockFilterTypes ( )

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

Variable Documentation

◆ BASIC_FILTER_M

constexpr uint32_t BASIC_FILTER_M = 784931

◆ BASIC_FILTER_P

constexpr uint8_t BASIC_FILTER_P = 19