Bitcoin Core  0.21.1
P2P Digital Currency
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules
Functions | Variables
addrman.cpp File Reference
#include <addrman.h>
#include <bench/bench.h>
#include <random.h>
#include <util/time.h>
#include <vector>
Include dependency graph for addrman.cpp:

Go to the source code of this file.

Functions

static void CreateAddresses ()
 
static void AddAddressesToAddrMan (CAddrMan &addrman)
 
static void FillAddrMan (CAddrMan &addrman)
 
static void AddrManAdd (benchmark::Bench &bench)
 
static void AddrManSelect (benchmark::Bench &bench)
 
static void AddrManGetAddr (benchmark::Bench &bench)
 
static void AddrManGood (benchmark::Bench &bench)
 
 BENCHMARK (AddrManAdd)
 
 BENCHMARK (AddrManSelect)
 
 BENCHMARK (AddrManGetAddr)
 
 BENCHMARK (AddrManGood)
 

Variables

static constexpr size_t NUM_SOURCES = 64
 
static constexpr size_t NUM_ADDRESSES_PER_SOURCE = 256
 
static std::vector< CAddressg_sources
 
static std::vector
< std::vector< CAddress > > 
g_addresses
 

Function Documentation

static void AddAddressesToAddrMan ( CAddrMan addrman)
static

Definition at line 54 of file addrman.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

static void AddrManAdd ( benchmark::Bench bench)
static

Definition at line 70 of file addrman.cpp.

Here is the call graph for this function:

static void AddrManGetAddr ( benchmark::Bench bench)
static

Definition at line 94 of file addrman.cpp.

Here is the call graph for this function:

static void AddrManGood ( benchmark::Bench bench)
static

Definition at line 106 of file addrman.cpp.

Here is the call graph for this function:

static void AddrManSelect ( benchmark::Bench bench)
static

Definition at line 82 of file addrman.cpp.

Here is the call graph for this function:

BENCHMARK ( AddrManAdd  )
BENCHMARK ( AddrManSelect  )
BENCHMARK ( AddrManGetAddr  )
BENCHMARK ( AddrManGood  )
static void CreateAddresses ( )
static

Definition at line 20 of file addrman.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

static void FillAddrMan ( CAddrMan addrman)
static

Definition at line 61 of file addrman.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

std::vector<std::vector<CAddress> > g_addresses
static

Definition at line 18 of file addrman.cpp.

std::vector<CAddress> g_sources
static

Definition at line 17 of file addrman.cpp.

constexpr size_t NUM_ADDRESSES_PER_SOURCE = 256
static

Definition at line 15 of file addrman.cpp.

constexpr size_t NUM_SOURCES = 64
static

Definition at line 14 of file addrman.cpp.