Merge pull request #3 from donshin/widen-protocol-compatibility

Widened compatibility to include requests from protocol 170002.
This commit is contained in:
CryptoJake22 2018-04-18 19:39:50 -04:00 committed by GitHub
commit f84485b688
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ of reliable nodes via a built-in DNS server.
Features:
* regularly revisits known nodes to check their availability
* 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.
* keeps statistics over (exponential) windows of 2 hours, 8 hours,
1 day and 1 week, to base decisions on.

2
db.h
View File

@ -13,7 +13,7 @@
#define MIN_RETRY 1000
#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)
{