Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

bloom.h File Reference
#include <serialize.h>
#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 The remaining bits are reserved. More...
 

Variables

static const unsigned int MAX_BLOOM_FILTER_SIZE = 36000
 20,000 items with fp rate < 0.1% or 10,000 items and <0.0001% More...
 
static const unsigned int 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 26 of file bloom.h.

Variable Documentation

◆ MAX_BLOOM_FILTER_SIZE

const unsigned int MAX_BLOOM_FILTER_SIZE = 36000
static

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

Definition at line 19 of file bloom.h.

Referenced by CBloomFilter::IsWithinSizeConstraints().

◆ MAX_HASH_FUNCS

const unsigned int MAX_HASH_FUNCS = 50
static

Definition at line 20 of file bloom.h.

Referenced by CBloomFilter::IsWithinSizeConstraints().

Released under the MIT license