 |
Bitcoin Core
22.99.0
P2P Digital Currency
|
Go to the documentation of this file.
5 #include <blockfilter.h>
18 const std::optional<BlockFilter> block_filter = ConsumeDeserializable<BlockFilter>(fuzzed_data_provider);
23 (void)block_filter->ComputeHeader(
ConsumeUInt256(fuzzed_data_provider));
24 (void)block_filter->GetBlockHash();
25 (void)block_filter->GetEncodedFilter();
26 (void)block_filter->GetHash();
29 const BlockFilterType block_filter_type = block_filter->GetFilterType();
33 const GCSFilter gcs_filter = block_filter->GetFilter();
34 (void)gcs_filter.
GetN();
uint256 ConsumeUInt256(FuzzedDataProvider &fuzzed_data_provider) noexcept
const std::string & BlockFilterTypeName(BlockFilterType filter_type)
Get the human-readable name for a filter type.
bool Match(const Element &element) const
Checks if the element may be in the set.
const Params & GetParams() const
This implements a Golomb-coded set as defined in BIP 158.
std::vector< uint8_t > ConsumeRandomLengthByteVector(FuzzedDataProvider &fuzzed_data_provider, const std::optional< size_t > &max_length=std::nullopt) noexcept
bool MatchAny(const ElementSet &elements) const
Checks if any of the given elements may be in the set.
#define LIMITED_WHILE(condition, limit)
Can be used to limit a theoretically unbounded loop.
std::unordered_set< Element, ByteVectorHash > ElementSet
const std::vector< unsigned char > & GetEncoded() const