Bitcoin ABC 0.30.5
P2P Digital Currency
|
#include <primitives/block.h>
#include <primitives/blockhash.h>
#include <serialize.h>
#include <uint256.h>
#include <undo.h>
#include <util/bytevectorhash.h>
#include <cstdint>
#include <set>
#include <string>
#include <unordered_set>
#include <vector>
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 class | BlockFilterType : uint8_t { BASIC = 0 , 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::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... | |
Variables | |
constexpr uint8_t | BASIC_FILTER_P = 19 |
constexpr uint32_t | BASIC_FILTER_M = 784931 |
|
strong |
Enumerator | |
---|---|
BASIC | |
INVALID |
Definition at line 88 of file blockfilter.h.
const std::set< BlockFilterType > & AllBlockFilterTypes | ( | ) |
Get a list of known filter types.
Definition at line 160 of file blockfilter.cpp.
bool BlockFilterTypeByName | ( | const std::string & | name, |
BlockFilterType & | filter_type | ||
) |
Find a filter type by its human-readable name.
Definition at line 149 of file blockfilter.cpp.
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 143 of file blockfilter.cpp.
const std::string & ListBlockFilterTypes | ( | ) |
Get a comma-separated list of known filter type names.
Definition at line 173 of file blockfilter.cpp.
|
constexpr |
Definition at line 86 of file blockfilter.h.
|
constexpr |
Definition at line 85 of file blockfilter.h.