![]() |
Bitcoin Core 22.99.0
P2P Digital Currency
|
#include <addrdb.h>
#include <addrman.h>
#include <addrman_impl.h>
#include <chainparams.h>
#include <merkleblock.h>
#include <random.h>
#include <test/fuzz/FuzzedDataProvider.h>
#include <test/fuzz/fuzz.h>
#include <test/fuzz/util.h>
#include <time.h>
#include <util/asmap.h>
#include <cassert>
#include <cstdint>
#include <optional>
#include <string>
#include <vector>
Go to the source code of this file.
Classes | |
class | AddrManDeterministic |
Functions | |
void | initialize_addrman () |
FUZZ_TARGET_INIT (data_stream_addr_man, initialize_addrman) | |
CNetAddr | RandAddr (FuzzedDataProvider &fuzzed_data_provider, FastRandomContext &fast_random_context) |
Generate a random address. More... | |
void | FillAddrman (AddrMan &addrman, FuzzedDataProvider &fuzzed_data_provider) |
Fill addrman with lots of addresses from lots of sources. More... | |
std::vector< bool > | ConsumeAsmap (FuzzedDataProvider &fuzzed_data_provider) noexcept |
FUZZ_TARGET_INIT (addrman, initialize_addrman) | |
FUZZ_TARGET_INIT (addrman_serdeser, initialize_addrman) | |
|
inlinenoexcept |
Definition at line 214 of file addrman.cpp.
void FillAddrman | ( | AddrMan & | addrman, |
FuzzedDataProvider & | fuzzed_data_provider | ||
) |
Fill addrman with lots of addresses from lots of sources.
Definition at line 78 of file addrman.cpp.
FUZZ_TARGET_INIT | ( | addrman | , |
initialize_addrman | |||
) |
FUZZ_TARGET_INIT | ( | addrman_serdeser | , |
initialize_addrman | |||
) |
FUZZ_TARGET_INIT | ( | data_stream_addr_man | , |
initialize_addrman | |||
) |
void initialize_addrman | ( | ) |
CNetAddr RandAddr | ( | FuzzedDataProvider & | fuzzed_data_provider, |
FastRandomContext & | fast_random_context | ||
) |
Generate a random address.
Always returns a valid address.
Definition at line 42 of file addrman.cpp.