|
|
@ -5,6 +5,21 @@
|
|
|
|
#ifndef BITCOIN_ADDRMAN_IMPL_H
|
|
|
|
#ifndef BITCOIN_ADDRMAN_IMPL_H
|
|
|
|
#define BITCOIN_ADDRMAN_IMPL_H
|
|
|
|
#define BITCOIN_ADDRMAN_IMPL_H
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include <logging.h>
|
|
|
|
|
|
|
|
#include <netaddress.h>
|
|
|
|
|
|
|
|
#include <protocol.h>
|
|
|
|
|
|
|
|
#include <serialize.h>
|
|
|
|
|
|
|
|
#include <sync.h>
|
|
|
|
|
|
|
|
#include <uint256.h>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include <cstdint>
|
|
|
|
|
|
|
|
#include <optional>
|
|
|
|
|
|
|
|
#include <set>
|
|
|
|
|
|
|
|
#include <unordered_map>
|
|
|
|
|
|
|
|
#include <unordered_set>
|
|
|
|
|
|
|
|
#include <utility>
|
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
|
|
|
|
/** Total number of buckets for tried addresses */
|
|
|
|
/** Total number of buckets for tried addresses */
|
|
|
|
static constexpr int32_t ADDRMAN_TRIED_BUCKET_COUNT_LOG2{8};
|
|
|
|
static constexpr int32_t ADDRMAN_TRIED_BUCKET_COUNT_LOG2{8};
|
|
|
|
static constexpr int ADDRMAN_TRIED_BUCKET_COUNT{1 << ADDRMAN_TRIED_BUCKET_COUNT_LOG2};
|
|
|
|
static constexpr int ADDRMAN_TRIED_BUCKET_COUNT{1 << ADDRMAN_TRIED_BUCKET_COUNT_LOG2};
|
|
|
|