Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
bloom.h
Go to the documentation of this file.
76 CBloomFilter(const unsigned int nElements, const double nFPRate, const unsigned int nTweak, unsigned char nFlagsIn);
CRollingBloomFilter(const unsigned int nElements, const double nFPRate)
Definition: bloom.cpp:301
bloomflags
First two bits of nFlags control how much IsRelevantAndUpdate actually updates The remaining bits are...
Definition: bloom.h:26
void insert(const std::vector< unsigned char > &vKey)
Definition: bloom.cpp:341
bool IsRelevantAndUpdate(const CTransaction &tx)
Also adds any outputs which match the filter to the filter (to match their spending txes) ...
Definition: bloom.cpp:233
Definition: bloom.h:31
BloomFilter is a probabilistic filter which SPV clients provide so that we can filter the transaction...
Definition: bloom.h:46
Definition: bloom.h:28
RollingBloomFilter is a probabilistic "keep track of most recently inserted" set. ...
Definition: bloom.h:126
static const unsigned int MAX_BLOOM_FILTER_SIZE
20,000 items with fp rate < 0.1% or 10,000 items and <0.0001%
Definition: bloom.h:19
unsigned int Hash(unsigned int nHashNum, const std::vector< unsigned char > &vDataToHash) const
Definition: bloom.cpp:56
bool contains(const std::vector< unsigned char > &vKey) const
Definition: bloom.cpp:378
Definition: bloom.h:32
An outpoint - a combination of a transaction hash and an index n into its vout.
Definition: transaction.h:26
bool CheckSpecialTransactionMatchesAndUpdate(const CTransaction &tx)
Definition: bloom.cpp:167
Definition: bloom.h:29
void UpdateEmptyFull()
Checks for empty and full filters to avoid wasting cpu.
Definition: bloom.cpp:288
The basic transaction that is broadcasted on the network and contained in blocks. ...
Definition: transaction.h:198
void SerializationOp(Stream &s, Operation ser_action)
Definition: bloom.h:82
bool IsWithinSizeConstraints() const
True if the size is <= MAX_BLOOM_FILTER_SIZE and the number of hash functions is <= MAX_HASH_FUNCS (c...
Definition: bloom.cpp:138
bool contains(const std::vector< unsigned char > &vKey) const
Definition: bloom.cpp:89