Commit 28444c49 authored by Alexander H's avatar Alexander H
Browse files

Update main.cpp, db.h, serialize.h files

parent 471b65f8
......@@ -12,11 +12,11 @@
#define MIN_RETRY 1000
#define REQUIRE_VERSION 70057 //needs change when updating
#define REQUIRE_VERSION 70058 //needs change when updating
static inline int GetRequireHeight(const bool testnet = fTestNet)
{
return testnet ? 20000 : 350000; //needs changes when updating
return testnet ? 20000 : 2865118 ; //needs changes when updating
}
std::string static inline ToString(const CService &ip) {
......@@ -120,7 +120,7 @@ public:
int GetBanTime() const {
if (IsGood()) return 0;
//The clientVersion < check should be the most recent compatible version. Setting it to current version will make the seeder not find any older versions.
if (clientVersion && clientVersion < 70057) { return 604800; } //needs change when updating
if (clientVersion && clientVersion < 70057) { return 61000; } //needs change when updating
if (stat1M.reliability - stat1M.weight + 1.0 < 0.15 && stat1M.count > 32) { return 30*86400; }
if (stat1W.reliability - stat1W.weight + 1.0 < 0.10 && stat1W.count > 16) { return 7*86400; }
if (stat1D.reliability - stat1D.weight + 1.0 < 0.05 && stat1D.count > 8) { return 1*86400; }
......
......@@ -405,16 +405,7 @@ extern "C" void* ThreadStats(void*) {
// The seeders themselves will be set by pointing the NS records through location-XX.seeder.crowncoin.net which can be setup by community members and also wil be set up by the infra team.
// Community members will request (outside of public view) for a DNS entry to be made to the main nameservers for their dns seed's IP,
// getting help setting it up from the infra team.
static const string mainnet_seeds[] = {"dnsseed1.crowncoin.org",
"dnsseed2.crowncoin.com",
"dnsseed3.crowncoin.org",
"dnsseed4.crowncoin.com",
"dnsseed5.crowncoin.org",
"dnsseed6.crowncoin.com",
"dnsseed1.crownplatform.com",
"dnsseed2.crownplatform.com",
"dnsseed3.crownplatform.com",
""};
static const string mainnet_seeds[] = {"dnsseed1.crowncoin.org", "dnsseed2.crowncoin.org", "crown.seednodes.net", "127.0.0.1",""};
// Testnet will not be set up untill version 3 of this seeder at the emerald release.
static const string testnet_seeds[] = {
"europe-01.crowncoin.org",
......
......@@ -60,7 +60,7 @@ class CDataStream;
class CAutoFile;
static const unsigned int MAX_SIZE = 0x02000000;
static const int PROTOCOL_VERSION = 70057;
static const int PROTOCOL_VERSION = 70058;
// Used to bypass the rule against non-const reference to temporary
// where it makes sense with wrappers such as CFlatData or CTxDB
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment