From ae9db66e8779796f3f2a441aadf7e41a0345ae20 Mon Sep 17 00:00:00 2001 From: MrSlosh Date: Sat, 3 Nov 2018 16:42:43 -0700 Subject: [PATCH 1/2] implementing more aggresive filtering to boot older nodes --- src/main.cpp | 2 +- src/version.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 15019b4..e03a626 100755 --- a/src/main.cpp +++ b/src/main.cpp @@ -4033,7 +4033,7 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv, } #ifndef ENABLE_PEERS - if(pfrom->cleanSubVer != "/Satoshi:1.0.0.1/" && pfrom->cleanSubVer != "/Satoshi:1.0.1.1/" && strstr(pfrom->cleanSubVer.c_str(), "NewYorkCoin") == NULL) + if(strstr(pfrom->cleanSubVer.c_str(), "NewYorkCoin") == NULL) { LogPrintf("%s using version %i %s from other client; disconnecting\n", pfrom->addr.ToString().c_str(), pfrom->nVersion, pfrom->cleanSubVer.c_str()); pfrom->fDisconnect = true; diff --git a/src/version.h b/src/version.h index 19f4bbe..504262d 100755 --- a/src/version.h +++ b/src/version.h @@ -18,7 +18,7 @@ static const int INIT_PROTO_VERSION = 209; static const int GETHEADERS_VERSION = 31800; //! disconnect from peers older than this proto version -static const int MIN_PEER_PROTO_VERSION = 60003; +static const int MIN_PEER_PROTO_VERSION = 70005; //! nTime field added to CAddress, starting with this version; //! if possible, avoid requesting addresses nodes older than this From 82d00b8f89de6ef0a68b0e402d82a1d9a5d559d2 Mon Sep 17 00:00:00 2001 From: MrSlosh Date: Sat, 3 Nov 2018 16:45:29 -0700 Subject: [PATCH 2/2] bumping version number --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index c2d5546..a37f12e 100755 --- a/configure.ac +++ b/configure.ac @@ -3,7 +3,7 @@ AC_PREREQ([2.60]) define(_CLIENT_VERSION_MAJOR, 1) define(_CLIENT_VERSION_MINOR, 3) define(_CLIENT_VERSION_REVISION, 1) -define(_CLIENT_VERSION_BUILD, 17) +define(_CLIENT_VERSION_BUILD, 18) define(_CLIENT_VERSION_IS_RELEASE, true) define(_COPYRIGHT_YEAR, 2018) AC_INIT([NewYorkCoin],[_CLIENT_VERSION_MAJOR._CLIENT_VERSION_MINOR._CLIENT_VERSION_REVISION],[https://github.com/NewYorkCoin-NYC/nycoin/issues],[newyorkcoin])