Skip to content

Commit

Permalink
Merge pull request #12 from m0gliE/fastcoin-8.7.1
Browse files Browse the repository at this point in the history
Client version fix for blockchain sync
  • Loading branch information
m0gliE committed Aug 26, 2014
2 parents f66529f + 0700572 commit f6116e1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main.cpp
Expand Up @@ -3278,16 +3278,16 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv)
CAddress addrFrom;
uint64 nNonce = 1;
vRecv >> pfrom->nVersion >> pfrom->nServices >> nTime >> addrMe;
if (pfrom->nVersion < MIN_PEER_PROTO_VERSION)
if (pfrom->nVersion < INIT_PROTO_VERSION)
{
// disconnect from peers older than this proto version
printf("partner %s using obsolete version %i; disconnecting\n", pfrom->addr.ToString().c_str(), pfrom->nVersion);
pfrom->fDisconnect = true;
return false;
}

if (pfrom->nVersion == 10300)
pfrom->nVersion = 300;
if (pfrom->nVersion == 70002)
pfrom->nVersion = 209;
if (!vRecv.empty())
vRecv >> addrFrom >> nNonce;
if (!vRecv.empty()) {
Expand Down

0 comments on commit f6116e1

Please sign in to comment.