24 1.0 / fuzzed_data_provider.
ConsumeIntegralInRange<
unsigned int>(1, std::numeric_limits<unsigned int>::max()),
33 (void)bloom_filter.contains(b);
34 bloom_filter.insert(b);
35 const bool present = bloom_filter.contains(b);
39 const std::optional<COutPoint> out_point = ConsumeDeserializable<COutPoint>(fuzzed_data_provider);
44 (void)bloom_filter.contains(*out_point);
45 bloom_filter.insert(*out_point);
46 const bool present = bloom_filter.contains(*out_point);
50 const std::optional<uint256> u256 = ConsumeDeserializable<uint256>(fuzzed_data_provider);
55 (void)bloom_filter.contains(*u256);
56 bloom_filter.insert(*u256);
57 const bool present = bloom_filter.contains(*u256);
61 const std::optional<CMutableTransaction> mut_tx = ConsumeDeserializable<CMutableTransaction>(fuzzed_data_provider,
TX_WITH_WITNESS);
67 (void)bloom_filter.IsRelevantAndUpdate(tx);
69 (void)bloom_filter.IsWithinSizeConstraints();
@ BLOOM_UPDATE_P2PUBKEY_ONLY
FUZZ_TARGET(bloom_filter)
BloomFilter is a probabilistic filter which SPV clients provide so that we can filter the transaction...
The basic transaction that is broadcasted on the network and contained in blocks.
T ConsumeIntegralInRange(T min, T max)
T PickValueInArray(const T(&array)[size])
#define LIMITED_WHILE(condition, limit)
Can be used to limit a theoretically unbounded loop.
static constexpr TransactionSerParams TX_WITH_WITNESS
size_t CallOneOf(FuzzedDataProvider &fuzzed_data_provider, Callables... callables)
std::vector< B > ConsumeRandomLengthByteVector(FuzzedDataProvider &fuzzed_data_provider, const std::optional< size_t > &max_length=std::nullopt) noexcept