Bitcoin Core  22.99.0
P2P Digital Currency
Classes | Functions
addrman.cpp File Reference
#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 <test/util/setup_common.h>
#include <time.h>
#include <util/asmap.h>
#include <util/system.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.

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)
 

Function Documentation

◆ ConsumeAsmap()

std::vector<bool> ConsumeAsmap ( FuzzedDataProvider fuzzed_data_provider)
inlinenoexcept

Definition at line 226 of file addrman.cpp.

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

◆ FillAddrman()

void FillAddrman ( AddrMan addrman,
FuzzedDataProvider fuzzed_data_provider 
)

Fill addrman with lots of addresses from lots of sources.


Definition at line 90 of file addrman.cpp.

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

◆ FUZZ_TARGET_INIT() [1/3]

FUZZ_TARGET_INIT ( addrman  ,
initialize_addrman   
)

Definition at line 233 of file addrman.cpp.

Here is the call graph for this function:

◆ FUZZ_TARGET_INIT() [2/3]

FUZZ_TARGET_INIT ( addrman_serdeser  ,
initialize_addrman   
)

Definition at line 311 of file addrman.cpp.

Here is the call graph for this function:

◆ FUZZ_TARGET_INIT() [3/3]

FUZZ_TARGET_INIT ( data_stream_addr_man  ,
initialize_addrman   
)

Definition at line 40 of file addrman.cpp.

Here is the call graph for this function:

◆ initialize_addrman()

void initialize_addrman ( )

Definition at line 34 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 54 of file addrman.cpp.

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