Bitcoin Core 28.99.0
P2P Digital Currency
|
#include <addrdb.h>
#include <addrman.h>
#include <addrman_impl.h>
#include <chainparams.h>
#include <common/args.h>
#include <merkleblock.h>
#include <random.h>
#include <test/fuzz/FuzzedDataProvider.h>
#include <test/fuzz/fuzz.h>
#include <test/fuzz/util.h>
#include <test/fuzz/util/net.h>
#include <test/util/setup_common.h>
#include <time.h>
#include <util/asmap.h>
#include <util/chaintype.h>
#include <cassert>
#include <cstdint>
#include <optional>
#include <string>
#include <vector>
Go to the source code of this file.
Functions | |
void | initialize_addrman () |
FUZZ_TARGET (data_stream_addr_man,.init=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... | |
FUZZ_TARGET (addrman,.init=initialize_addrman) | |
FUZZ_TARGET (addrman_serdeser,.init=initialize_addrman) | |
void FillAddrman | ( | AddrMan & | addrman, |
FuzzedDataProvider & | fuzzed_data_provider | ||
) |
Fill addrman with lots of addresses from lots of sources.
Definition at line 81 of file addrman.cpp.
FUZZ_TARGET | ( | addrman | , |
. | init = initialize_addrman |
||
) |
FUZZ_TARGET | ( | addrman_serdeser | , |
. | init = initialize_addrman |
||
) |
FUZZ_TARGET | ( | data_stream_addr_man | , |
. | init = initialize_addrman |
||
) |
void initialize_addrman | ( | ) |
Definition at line 36 of file addrman.cpp.
CNetAddr RandAddr | ( | FuzzedDataProvider & | fuzzed_data_provider, |
FastRandomContext & | fast_random_context | ||
) |
Generate a random address.
Always returns a valid address.
Definition at line 58 of file addrman.cpp.