Changeset View
Changeset View
Standalone View
Standalone View
src/bloom.h
Show First 20 Lines • Show All 83 Lines • ▼ Show 20 Lines | public: | ||||
void insert(const std::vector<uint8_t> &vKey); | void insert(const std::vector<uint8_t> &vKey); | ||||
void insert(const COutPoint &outpoint); | void insert(const COutPoint &outpoint); | ||||
void insert(const uint256 &hash); | void insert(const uint256 &hash); | ||||
bool contains(const std::vector<uint8_t> &vKey) const; | bool contains(const std::vector<uint8_t> &vKey) const; | ||||
bool contains(const COutPoint &outpoint) const; | bool contains(const COutPoint &outpoint) const; | ||||
bool contains(const uint256 &hash) const; | bool contains(const uint256 &hash) const; | ||||
void clear(); | |||||
void reset(const uint32_t nNewTweak); | |||||
//! True if the size is <= MAX_BLOOM_FILTER_SIZE and the number of hash | //! True if the size is <= MAX_BLOOM_FILTER_SIZE and the number of hash | ||||
//! functions is <= MAX_HASH_FUNCS (catch a filter which was just | //! functions is <= MAX_HASH_FUNCS (catch a filter which was just | ||||
//! deserialized which was too big) | //! deserialized which was too big) | ||||
bool IsWithinSizeConstraints() const; | bool IsWithinSizeConstraints() const; | ||||
//! Scans output scripts for matches and adds those outpoints to the filter | //! Scans output scripts for matches and adds those outpoints to the filter | ||||
//! for spend detection. Returns true if any output matched, or the txid | //! for spend detection. Returns true if any output matched, or the txid | ||||
//! matches. | //! matches. | ||||
▲ Show 20 Lines • Show All 52 Lines • Show Last 20 Lines |