Bitcoin ABC 0.30.5
P2P Digital Currency
|
#include <blockfilter.h>
#include <crypto/siphash.h>
#include <hash.h>
#include <primitives/transaction.h>
#include <script/script.h>
#include <streams.h>
#include <util/fastrange.h>
#include <util/golombrice.h>
#include <mutex>
#include <sstream>
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 constexpr int | GCS_SER_TYPE = SER_NETWORK |
SerType used to serialize parameters in GCS filter encoding. More... | |
static constexpr int | GCS_SER_VERSION = 0 |
Protocol version used to serialize parameters in GCS filter encoding. More... | |
static const std::map< BlockFilterType, std::string > | g_filter_types |
const std::set< BlockFilterType > & AllBlockFilterTypes | ( | ) |
Get a list of known filter types.
Definition at line 160 of file blockfilter.cpp.
|
static |
Definition at line 193 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.
|
static |
Definition at line 24 of file blockfilter.cpp.
|
staticconstexpr |
SerType used to serialize parameters in GCS filter encoding.
Definition at line 19 of file blockfilter.cpp.
|
staticconstexpr |
Protocol version used to serialize parameters in GCS filter encoding.
Definition at line 22 of file blockfilter.cpp.