Bitcoin
|
#include <mutex>
#include <sstream>
#include <blockfilter.h>
#include <crypto/siphash.h>
#include <hash.h>
#include <primitives/transaction.h>
#include <script/script.h>
#include <streams.h>
Functions | |
template<typename OStream > | |
static void | GolombRiceEncode (BitStreamWriter< OStream > &bitwriter, uint8_t P, uint64_t x) |
template<typename IStream > | |
static uint64_t | GolombRiceDecode (BitStreamReader< IStream > &bitreader, uint8_t P) |
static uint64_t | MapIntoRange (uint64_t x, uint64_t n) |
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 () |
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::vector<BlockFilterType>& AllBlockFilterTypes | ( | ) |
Get a list of known filter types.
|
static |
bool BlockFilterTypeByName | ( | const std::string & | name, |
BlockFilterType & | filter_type | ||
) |
Find a filter type by its human-readable name.
const std::string& BlockFilterTypeName | ( | BlockFilterType | filter_type | ) |
Get the human-readable name for a filter type. Returns empty string for unknown types.
|
static |
|
static |
const std::string& ListBlockFilterTypes | ( | ) |
Get a comma-separated list of known filter type names.
|
static |
|
static |
SerType used to serialize parameters in GCS filter encoding.
|
static |
Protocol version used to serialize parameters in GCS filter encoding.