Bitcoin ABC 0.30.5
P2P Digital Currency
Classes | Enumerations | Variables
bloom.h File Reference
#include <serialize.h>
#include <cstdint>
#include <vector>
Include dependency graph for bloom.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  CBloomFilter
 BloomFilter is a probabilistic filter which SPV clients provide so that we can filter the transactions we send them. More...
 
class  CRollingBloomFilter
 RollingBloomFilter is a probabilistic "keep track of most recently inserted" set. More...
 

Enumerations

enum  bloomflags { BLOOM_UPDATE_NONE = 0 , BLOOM_UPDATE_ALL = 1 , BLOOM_UPDATE_P2PUBKEY_ONLY = 2 , BLOOM_UPDATE_MASK = 3 }
 First two bits of nFlags control how much IsRelevantAndUpdate actually updates. More...
 

Variables

static const uint32_t MAX_BLOOM_FILTER_SIZE = 36000
 20,000 items with fp rate < 0.1% or 10,000 items and <0.0001% More...
 
static const uint32_t MAX_HASH_FUNCS = 50
 

Enumeration Type Documentation

◆ bloomflags

enum bloomflags

First two bits of nFlags control how much IsRelevantAndUpdate actually updates.

The remaining bits are reserved.

Enumerator
BLOOM_UPDATE_NONE 
BLOOM_UPDATE_ALL 
BLOOM_UPDATE_P2PUBKEY_ONLY 
BLOOM_UPDATE_MASK 

Definition at line 24 of file bloom.h.

Variable Documentation

◆ MAX_BLOOM_FILTER_SIZE

const uint32_t MAX_BLOOM_FILTER_SIZE = 36000
static

20,000 items with fp rate < 0.1% or 10,000 items and <0.0001%

Definition at line 17 of file bloom.h.

◆ MAX_HASH_FUNCS

const uint32_t MAX_HASH_FUNCS = 50
static

Definition at line 18 of file bloom.h.