![]() |
Dash Core
0.12.2.1
P2P Digital Currency
|
#include "netaddress.h"
#include "protocol.h"
#include "random.h"
#include "sync.h"
#include "timedata.h"
#include "util.h"
#include <map>
#include <set>
#include <stdint.h>
#include <vector>
Go to the source code of this file.
Classes | |
class | CAddrInfo |
class | CAddrMan |
Macros | |
#define | ADDRMAN_TRIED_BUCKET_COUNT 256 |
total number of buckets for tried addresses More... | |
#define | ADDRMAN_NEW_BUCKET_COUNT 1024 |
total number of buckets for new addresses More... | |
#define | ADDRMAN_BUCKET_SIZE 64 |
maximum allowed number of entries in buckets for new and tried addresses More... | |
#define | ADDRMAN_TRIED_BUCKETS_PER_GROUP 8 |
over how many buckets entries with tried addresses from a single group (/16 for IPv4) are spread More... | |
#define | ADDRMAN_NEW_BUCKETS_PER_SOURCE_GROUP 64 |
over how many buckets entries with new addresses originating from a single group are spread More... | |
#define | ADDRMAN_NEW_BUCKETS_PER_ADDRESS 8 |
in how many buckets for entries with new addresses a single address may occur More... | |
#define | ADDRMAN_HORIZON_DAYS 30 |
how old addresses can maximally be More... | |
#define | ADDRMAN_RETRIES 3 |
after how many failed attempts we give up on a new node More... | |
#define | ADDRMAN_MAX_FAILURES 10 |
how many successive failures are allowed ... More... | |
#define | ADDRMAN_MIN_FAIL_DAYS 7 |
... in at least this many days More... | |
#define | ADDRMAN_GETADDR_MAX_PCT 23 |
the maximum percentage of nodes to return in a getaddr call More... | |
#define | ADDRMAN_GETADDR_MAX 2500 |
the maximum number of nodes to return in a getaddr call More... | |
#define ADDRMAN_BUCKET_SIZE 64 |
maximum allowed number of entries in buckets for new and tried addresses
Definition at line 140 of file addrman.h.
Referenced by CAddrMan::Clear(), CAddrInfo::GetBucketPosition(), CAddrMan::Select_(), and CAddrMan::Serialize().
#define ADDRMAN_GETADDR_MAX 2500 |
the maximum number of nodes to return in a getaddr call
Definition at line 167 of file addrman.h.
Referenced by CAddrMan::GetAddr_().
#define ADDRMAN_GETADDR_MAX_PCT 23 |
the maximum percentage of nodes to return in a getaddr call
Definition at line 164 of file addrman.h.
Referenced by CAddrMan::GetAddr_().
#define ADDRMAN_HORIZON_DAYS 30 |
how old addresses can maximally be
Definition at line 152 of file addrman.h.
Referenced by CAddrInfo::IsTerrible().
#define ADDRMAN_MAX_FAILURES 10 |
how many successive failures are allowed ...
Definition at line 158 of file addrman.h.
Referenced by CAddrInfo::IsTerrible().
#define ADDRMAN_MIN_FAIL_DAYS 7 |
... in at least this many days
Definition at line 161 of file addrman.h.
Referenced by CAddrInfo::IsTerrible().
#define ADDRMAN_NEW_BUCKET_COUNT 1024 |
total number of buckets for new addresses
Definition at line 137 of file addrman.h.
Referenced by CAddrMan::Clear(), CAddrInfo::GetNewBucket(), CAddrMan::Good_(), CAddrMan::MakeTried(), CAddrMan::Select_(), CAddrMan::Serialize(), and CAddrMan::Unserialize().
#define ADDRMAN_NEW_BUCKETS_PER_ADDRESS 8 |
in how many buckets for entries with new addresses a single address may occur
Definition at line 149 of file addrman.h.
Referenced by CAddrMan::Add_(), and CAddrMan::Unserialize().
#define ADDRMAN_NEW_BUCKETS_PER_SOURCE_GROUP 64 |
over how many buckets entries with new addresses originating from a single group are spread
Definition at line 146 of file addrman.h.
Referenced by CAddrInfo::GetNewBucket().
#define ADDRMAN_RETRIES 3 |
after how many failed attempts we give up on a new node
Definition at line 155 of file addrman.h.
Referenced by CAddrInfo::IsTerrible().
#define ADDRMAN_TRIED_BUCKET_COUNT 256 |
total number of buckets for tried addresses
Stochastic address manager
Design goals:
To that end:
Definition at line 134 of file addrman.h.
Referenced by CAddrMan::Clear(), CAddrInfo::GetTriedBucket(), and CAddrMan::Select_().
#define ADDRMAN_TRIED_BUCKETS_PER_GROUP 8 |
over how many buckets entries with tried addresses from a single group (/16 for IPv4) are spread
Definition at line 143 of file addrman.h.
Referenced by CAddrInfo::GetTriedBucket().