![]() |
Bitcoin Core 30.99.0
P2P Digital Currency
|
#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>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::PriorityLevel::HIGH) | |
| BENCHMARK (AddrManSelect, benchmark::PriorityLevel::HIGH) | |
| BENCHMARK (AddrManSelectFromAlmostEmpty, benchmark::PriorityLevel::HIGH) | |
| BENCHMARK (AddrManSelectByNetwork, benchmark::PriorityLevel::HIGH) | |
| BENCHMARK (AddrManGetAddr, benchmark::PriorityLevel::HIGH) | |
| BENCHMARK (AddrManAddThenGood, benchmark::PriorityLevel::HIGH) | |
Variables | |
| static constexpr size_t | NUM_SOURCES = 64 |
| static constexpr size_t | NUM_ADDRESSES_PER_SOURCE = 256 |
| static NetGroupManager | EMPTY_NETGROUPMAN {std::vector<bool>()} |
| static constexpr uint32_t | ADDRMAN_CONSISTENCY_CHECK_RATIO {0} |
| static std::vector< CAddress > | g_sources |
| static std::vector< std::vector< CAddress > > | g_addresses |
|
static |
Definition at line 67 of file addrman.cpp.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
| BENCHMARK | ( | AddrManAdd | , |
| benchmark::PriorityLevel::HIGH | |||
| ) |
| BENCHMARK | ( | AddrManAddThenGood | , |
| benchmark::PriorityLevel::HIGH | |||
| ) |
| BENCHMARK | ( | AddrManGetAddr | , |
| benchmark::PriorityLevel::HIGH | |||
| ) |
| BENCHMARK | ( | AddrManSelect | , |
| benchmark::PriorityLevel::HIGH | |||
| ) |
| BENCHMARK | ( | AddrManSelectByNetwork | , |
| benchmark::PriorityLevel::HIGH | |||
| ) |
| BENCHMARK | ( | AddrManSelectFromAlmostEmpty | , |
| benchmark::PriorityLevel::HIGH | |||
| ) |
|
static |
Definition at line 33 of file addrman.cpp.
|
static |
Definition at line 74 of file addrman.cpp.
|
staticconstexpr |
Definition at line 28 of file addrman.cpp.
|
static |
Definition at line 27 of file addrman.cpp.
|
static |
Definition at line 31 of file addrman.cpp.
|
static |
Definition at line 30 of file addrman.cpp.
|
staticconstexpr |
Definition at line 25 of file addrman.cpp.
|
staticconstexpr |
Definition at line 24 of file addrman.cpp.