Dash Core  0.12.2.1
P2P Digital Currency
bloom.h File Reference
#include "serialize.h"
#include <vector>

Go to the source code of this file.

Classes

class  CBloomFilter
 
class  CRollingBloomFilter
 

Enumerations

enum  bloomflags { BLOOM_UPDATE_NONE = 0, BLOOM_UPDATE_ALL = 1, BLOOM_UPDATE_P2PUBKEY_ONLY = 2, BLOOM_UPDATE_MASK = 3 }
 

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 24 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 17 of file bloom.h.

Referenced by CBloomFilter::IsWithinSizeConstraints().

◆ MAX_HASH_FUNCS

const unsigned int MAX_HASH_FUNCS = 50
static

Definition at line 18 of file bloom.h.

Referenced by CBloomFilter::IsWithinSizeConstraints().