Remove unused staked chain proto version

This commit is contained in:
Duke Leto
2020-11-14 04:57:19 -05:00
parent abc0401e1b
commit a7c1fe62dd
2 changed files with 0 additions and 3 deletions

View File

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

View File

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