Browse Source

Remove unused staked chain proto version

danger
Duke Leto 4 years ago
parent
commit
a7c1fe62dd
  1. 2
      src/main.cpp
  2. 1
      src/version.h

2
src/main.cpp

@ -7262,8 +7262,6 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv,
uint64_t nNonce = 1;
int nVersion; // use temporary for version, don't set version number until validated as connected
int minVersion = MIN_PEER_PROTO_VERSION;
if ( is_STAKED(ASSETCHAINS_SYMBOL) != 0 )
minVersion = STAKEDMIN_PEER_PROTO_VERSION;
vRecv >> nVersion >> pfrom->nServices >> nTime >> addrMe;
if (nVersion == 10300)
nVersion = 300;

1
src/version.h

@ -35,7 +35,6 @@ static const int GETHEADERS_VERSION = 31800;
//! disconnect from peers older than this proto version
static const int MIN_PEER_PROTO_VERSION = 170007;
static const int STAKEDMIN_PEER_PROTO_VERSION = 170007;
//! nTime field added to CAddress, starting with this version;
//! if possible, avoid requesting addresses nodes older than this

Loading…
Cancel
Save