Changeset View
Changeset View
Standalone View
Standalone View
src/addrman.h
Show First 20 Lines • Show All 170 Lines • ▼ Show 20 Lines | |||||
//! how recent a successful connection should be before we allow an address to | //! how recent a successful connection should be before we allow an address to | ||||
//! be evicted from tried | //! be evicted from tried | ||||
#define ADDRMAN_REPLACEMENT_SECONDS (4 * 60 * 60) | #define ADDRMAN_REPLACEMENT_SECONDS (4 * 60 * 60) | ||||
//! the maximum percentage of nodes to return in a getaddr call | //! the maximum percentage of nodes to return in a getaddr call | ||||
#define ADDRMAN_GETADDR_MAX_PCT 23 | #define ADDRMAN_GETADDR_MAX_PCT 23 | ||||
//! the maximum number of nodes to return in a getaddr call | //! the maximum number of nodes to return in a getaddr call | ||||
#define ADDRMAN_GETADDR_MAX 2500 | #define ADDRMAN_GETADDR_MAX 1000 | ||||
//! Convenience | //! Convenience | ||||
#define ADDRMAN_TRIED_BUCKET_COUNT (1 << ADDRMAN_TRIED_BUCKET_COUNT_LOG2) | #define ADDRMAN_TRIED_BUCKET_COUNT (1 << ADDRMAN_TRIED_BUCKET_COUNT_LOG2) | ||||
#define ADDRMAN_NEW_BUCKET_COUNT (1 << ADDRMAN_NEW_BUCKET_COUNT_LOG2) | #define ADDRMAN_NEW_BUCKET_COUNT (1 << ADDRMAN_NEW_BUCKET_COUNT_LOG2) | ||||
#define ADDRMAN_BUCKET_SIZE (1 << ADDRMAN_BUCKET_SIZE_LOG2) | #define ADDRMAN_BUCKET_SIZE (1 << ADDRMAN_BUCKET_SIZE_LOG2) | ||||
//! the maximum number of tried addr collisions to store | //! the maximum number of tried addr collisions to store | ||||
#define ADDRMAN_SET_TRIED_COLLISION_SIZE 10 | #define ADDRMAN_SET_TRIED_COLLISION_SIZE 10 | ||||
▲ Show 20 Lines • Show All 589 Lines • Show Last 20 Lines |