From 59f993273defcc6bcc732e1c8beff3d68436816c Mon Sep 17 00:00:00 2001 From: xnljfr Date: Sat, 22 Feb 2014 20:44:45 +0200 Subject: [PATCH 1/6] Switch 1.4.2 to seed.dogecoin.com Switch 1.4.2 to seed.dogecoin.com so it can connect to 1.5 peers! --- src/net.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/net.cpp b/src/net.cpp index 4efe3c8c3..dd71dd6a9 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -1151,7 +1151,7 @@ void MapPort() // The second name should resolve to a list of seed addresses. static const char *strDNSSeed[][2] = { // default hypernode dns seed , change later when network grows - {"seed.dogeftw.com", "seed.dogeftw.com"}, + {"seed.dogecoin.com", "seed.dogecoin.com"}, // {"dogecoinpool.org", "dnsseed.dogecoinpool.org"}, // {"bytesized-vps.com", "dnsseed.bytesized-vps.com"}, // {"xurious.com", "dnsseed.ltc.xurious.com"}, From 5e2d98a11a7b3c8b5f80292685cf5840bd7d6de6 Mon Sep 17 00:00:00 2001 From: xnljfr Date: Sat, 22 Feb 2014 21:05:37 +0200 Subject: [PATCH 2/6] Update main.cpp --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index bd66a4523..88bf3d9d1 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2494,7 +2494,7 @@ 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_PROTO_VERSION) + if (pfrom->nVersion < MIN_PEER_PROTO_VERSION) { // Since February 20, 2012, the protocol is initiated at version 209, // and earlier versions are no longer supported From 0db076a68e953b0cdc24430d39f4fc74450c4115 Mon Sep 17 00:00:00 2001 From: xnljfr Date: Sat, 22 Feb 2014 21:06:31 +0200 Subject: [PATCH 3/6] Update net.h --- src/net.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/net.h b/src/net.h index ab4a8d640..72f717e23 100644 --- a/src/net.h +++ b/src/net.h @@ -208,7 +208,7 @@ public: CCriticalSection cs_inventory; std::multimap mapAskFor; - CNode(SOCKET hSocketIn, CAddress addrIn, std::string addrNameIn = "", bool fInboundIn=false) : vSend(SER_NETWORK, MIN_PROTO_VERSION), vRecv(SER_NETWORK, MIN_PROTO_VERSION) + CNode(SOCKET hSocketIn, CAddress addrIn, std::string addrNameIn = "", bool fInboundIn=false) : ssSend(SER_NETWORK, INIT_PROTO_VERSION) { nServices = 0; hSocket = hSocketIn; From 55323c16397b10cc9c6de99902f60bd548776aa5 Mon Sep 17 00:00:00 2001 From: xnljfr Date: Sat, 22 Feb 2014 21:18:16 +0200 Subject: [PATCH 4/6] Update net.h --- src/net.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/net.h b/src/net.h index 72f717e23..ab4a8d640 100644 --- a/src/net.h +++ b/src/net.h @@ -208,7 +208,7 @@ public: CCriticalSection cs_inventory; std::multimap mapAskFor; - CNode(SOCKET hSocketIn, CAddress addrIn, std::string addrNameIn = "", bool fInboundIn=false) : ssSend(SER_NETWORK, INIT_PROTO_VERSION) + CNode(SOCKET hSocketIn, CAddress addrIn, std::string addrNameIn = "", bool fInboundIn=false) : vSend(SER_NETWORK, MIN_PROTO_VERSION), vRecv(SER_NETWORK, MIN_PROTO_VERSION) { nServices = 0; hSocket = hSocketIn; From 80795d47f6b740ca7dd40da2b32fca8699b06ce3 Mon Sep 17 00:00:00 2001 From: xnljfr Date: Sat, 22 Feb 2014 21:20:53 +0200 Subject: [PATCH 5/6] Update version.h --- src/version.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/version.h b/src/version.h index d1aaf85d8..9e596262a 100644 --- a/src/version.h +++ b/src/version.h @@ -33,8 +33,11 @@ extern const std::string CLIENT_DATE; static const int PROTOCOL_VERSION = 70001; -// earlier versions not supported as of Feb 2012, and are disconnected -static const int MIN_PROTO_VERSION = 70001; +// intial proto version, to be increased after version/verack negotiation +static const int MIN_PROTO_VERSION = 209; + +// disconnect from peers older than this proto version +static const int MIN_PEER_PROTO_VERSION = 70001; // nTime field added to CAddress, starting with this version; // if possible, avoid requesting addresses nodes older than this From 2ae4ddd2bb23314034ef33e0dc9cf4ae69f9ec8d Mon Sep 17 00:00:00 2001 From: xnljfr Date: Sat, 22 Feb 2014 21:23:22 +0200 Subject: [PATCH 6/6] Update main.cpp --- src/main.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 88bf3d9d1..71b4bd6f8 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2496,8 +2496,7 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv) vRecv >> pfrom->nVersion >> pfrom->nServices >> nTime >> addrMe; if (pfrom->nVersion < MIN_PEER_PROTO_VERSION) { - // Since February 20, 2012, the protocol is initiated at version 209, - // and earlier versions are no longer supported + // verack is at 209 , MIN_PEER_PROTO_VERSION is at 70001 printf("partner %s using obsolete version %i; disconnecting\n", pfrom->addr.ToString().c_str(), pfrom->nVersion); pfrom->fDisconnect = true; return false;