Bitcoin Core 28.99.0
P2P Digital Currency
Functions
addrman.cpp File Reference
#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>
Include dependency graph for addrman.cpp:

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)
 

Function Documentation

◆ FillAddrman()

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.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FUZZ_TARGET() [1/3]

FUZZ_TARGET ( addrman  ,
init = initialize_addrman 
)

Definition at line 115 of file addrman.cpp.

Here is the call graph for this function:

◆ FUZZ_TARGET() [2/3]

FUZZ_TARGET ( addrman_serdeser  ,
init = initialize_addrman 
)

Definition at line 200 of file addrman.cpp.

Here is the call graph for this function:

◆ FUZZ_TARGET() [3/3]

FUZZ_TARGET ( data_stream_addr_man  ,
init = initialize_addrman 
)

Definition at line 42 of file addrman.cpp.

Here is the call graph for this function:

◆ initialize_addrman()

void initialize_addrman ( )

Definition at line 36 of file addrman.cpp.

◆ RandAddr()

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.

Here is the call graph for this function:
Here is the caller graph for this function: