Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
addrman.cpp File Reference
#include <addrman.h>
#include <bench/bench.h>
#include <compat/compat.h>
#include <netaddress.h>
#include <netbase.h>
#include <netgroup.h>
#include <protocol.h>
#include <random.h>
#include <span.h>
#include <uint256.h>
#include <util/check.h>
#include <util/time.h>
#include <cstring>
#include <optional>
#include <vector>
Include dependency graph for addrman.cpp:

Go to the source code of this file.

Functions

static void CreateAddresses ()
static void AddAddressesToAddrMan (AddrMan &addrman)
static void FillAddrMan (AddrMan &addrman)
static void AddrManAdd (benchmark::Bench &bench)
static void AddrManSelect (benchmark::Bench &bench)
static void AddrManSelectFromAlmostEmpty (benchmark::Bench &bench)
static void AddrManSelectByNetwork (benchmark::Bench &bench)
static void AddrManGetAddr (benchmark::Bench &bench)
static void AddrManAddThenGood (benchmark::Bench &bench)
 BENCHMARK (AddrManAdd)
 BENCHMARK (AddrManSelect)
 BENCHMARK (AddrManSelectFromAlmostEmpty)
 BENCHMARK (AddrManSelectByNetwork)
 BENCHMARK (AddrManGetAddr)
 BENCHMARK (AddrManAddThenGood)

Variables

static constexpr size_t NUM_SOURCES = 64
static constexpr size_t NUM_ADDRESSES_PER_SOURCE = 256
static auto EMPTY_NETGROUPMAN {NetGroupManager::NoAsmap()}
static constexpr uint32_t ADDRMAN_CONSISTENCY_CHECK_RATIO {0}
static std::vector< CAddressg_sources
static std::vector< std::vector< CAddress > > g_addresses

Function Documentation

◆ AddAddressesToAddrMan()

void AddAddressesToAddrMan ( AddrMan & addrman)
static

Definition at line 67 of file addrman.cpp.

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

◆ AddrManAdd()

void AddrManAdd ( benchmark::Bench & bench)
static

Definition at line 83 of file addrman.cpp.

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

◆ AddrManAddThenGood()

void AddrManAddThenGood ( benchmark::Bench & bench)
static

Definition at line 152 of file addrman.cpp.

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

◆ AddrManGetAddr()

void AddrManGetAddr ( benchmark::Bench & bench)
static

Definition at line 140 of file addrman.cpp.

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

◆ AddrManSelect()

void AddrManSelect ( benchmark::Bench & bench)
static

Definition at line 93 of file addrman.cpp.

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

◆ AddrManSelectByNetwork()

void AddrManSelectByNetwork ( benchmark::Bench & bench)
static

Definition at line 121 of file addrman.cpp.

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

◆ AddrManSelectFromAlmostEmpty()

void AddrManSelectFromAlmostEmpty ( benchmark::Bench & bench)
static

Definition at line 108 of file addrman.cpp.

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

◆ BENCHMARK() [1/6]

BENCHMARK ( AddrManAdd )
Here is the call graph for this function:

◆ BENCHMARK() [2/6]

BENCHMARK ( AddrManAddThenGood )
Here is the call graph for this function:

◆ BENCHMARK() [3/6]

BENCHMARK ( AddrManGetAddr )
Here is the call graph for this function:

◆ BENCHMARK() [4/6]

BENCHMARK ( AddrManSelect )
Here is the call graph for this function:

◆ BENCHMARK() [5/6]

BENCHMARK ( AddrManSelectByNetwork )
Here is the call graph for this function:

◆ BENCHMARK() [6/6]

Here is the call graph for this function:

◆ CreateAddresses()

void CreateAddresses ( )
static

Definition at line 33 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)
static

Definition at line 74 of file addrman.cpp.

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

Variable Documentation

◆ ADDRMAN_CONSISTENCY_CHECK_RATIO

uint32_t ADDRMAN_CONSISTENCY_CHECK_RATIO {0}
staticconstexpr

Definition at line 28 of file addrman.cpp.

◆ EMPTY_NETGROUPMAN

auto EMPTY_NETGROUPMAN {NetGroupManager::NoAsmap()}
static

Definition at line 27 of file addrman.cpp.

◆ g_addresses

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

Definition at line 31 of file addrman.cpp.

◆ g_sources

std::vector<CAddress> g_sources
static

Definition at line 30 of file addrman.cpp.

◆ NUM_ADDRESSES_PER_SOURCE

size_t NUM_ADDRESSES_PER_SOURCE = 256
staticconstexpr

Definition at line 25 of file addrman.cpp.

◆ NUM_SOURCES

size_t NUM_SOURCES = 64
staticconstexpr

Definition at line 24 of file addrman.cpp.