Skip to content

Commit

Permalink
Merge pull request #39 from MrSlosh/master
Browse files Browse the repository at this point in the history
Implement more aggressive node filtering.
  • Loading branch information
cmelion authored Nov 4, 2018
2 parents 68edab1 + 82d00b8 commit 3b9a251
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3b9a251

Please sign in to comment.