Merge pull request #3 from donshin/widen-protocol-compatibility
Widened compatibility to include requests from protocol 170002.
This commit is contained in:
commit
f84485b688
|
@ -7,7 +7,7 @@ of reliable nodes via a built-in DNS server.
|
||||||
Features:
|
Features:
|
||||||
* regularly revisits known nodes to check their availability
|
* regularly revisits known nodes to check their availability
|
||||||
* bans nodes after enough failures, or bad behaviour
|
* bans nodes after enough failures, or bad behaviour
|
||||||
* accepts nodes down to protocol version 180003 to request new IP addresses from,
|
* accepts nodes down to protocol version 170002 to request new IP addresses from,
|
||||||
but only reports good (180004) nodes.
|
but only reports good (180004) nodes.
|
||||||
* keeps statistics over (exponential) windows of 2 hours, 8 hours,
|
* keeps statistics over (exponential) windows of 2 hours, 8 hours,
|
||||||
1 day and 1 week, to base decisions on.
|
1 day and 1 week, to base decisions on.
|
||||||
|
|
2
db.h
2
db.h
|
@ -13,7 +13,7 @@
|
||||||
#define MIN_RETRY 1000
|
#define MIN_RETRY 1000
|
||||||
|
|
||||||
#define REQUIRED_VERSION 180004
|
#define REQUIRED_VERSION 180004
|
||||||
#define MINIMUM_VERSION_TO_AVOID_BAN_TIME 180003
|
#define MINIMUM_VERSION_TO_AVOID_BAN_TIME 170002
|
||||||
|
|
||||||
static inline int GetRequireHeight(const bool testnet = fTestNet)
|
static inline int GetRequireHeight(const bool testnet = fTestNet)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue