Merge pull request #276 from xnljfr/1.4.1

Switch 1.4.2 to seed.dogecoin.com
This commit is contained in:
langerhans 2014-02-22 21:03:43 +01:00
commit 7a1360b9e0
3 changed files with 8 additions and 6 deletions

View file

@ -2494,10 +2494,9 @@ 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
// 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;

View file

@ -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"},

View file

@ -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