Browse Source

Fix seeds and proto version

master
Duke Leto 3 years ago
parent
commit
42d152bc02
  1. 32
      coin.h
  2. 3
      db.h

32
coin.h

@ -8,37 +8,33 @@
#include <string>
static const std::string mainnet_seeds[] = {"explorer.myhush.org",
"dnsseed.myhush.org",
"dnsseed.bleuzero.com",
"64.120.113.130",
"209.58.144.205",
"94.130.35.94",
"188.165.212.101",
""
static const std::string mainnet_seeds[] = {"node1.hush.is",
"node2.hush.is",
"node3.hush.is",
"node4.hush.is",
"node5.hush.is",
"node6.hush.is",
"node7.hush.is",
"node8.hush.is"
};
static const std::string testnet_seeds[] = {
"stilgar.myhush.org",
"nope.hush.is"
};
static const int mainnet_port = 18030;
static const int testnet_port = 28030;
// old hush
// old HUSH v2
//static unsigned char pchMessageStart[4] = { 0x24, 0xe9, 0x27, 0x64 };
// HUSH3: magic.d394d36e
static unsigned char pchMessageStart[4] = { 0x6e, 0xd3, 0x94, 0xd3 };
static unsigned char pchMessageStart[4] = { 0x6e, 0xd3, 0x94, 0xd3 };
static unsigned char pchMessageStart_testnet[4] = { 0xfa, 0x1a, 0xf9, 0xbf };
#define REQUIRE_VERSION 170002
static const int minimunClientVersion = 170002;
static const int PROTOCOL_VERSION = 170007;
static const int INIT_PROTO_VERSION = 209;
static const int REQUIRE_VERSION = 1987420;
static const int PROTOCOL_VERSION = 1987423;
static const int INIT_PROTO_VERSION = 209;
#endif // __INCLUDED_COIN_H__

3
db.h

@ -117,9 +117,10 @@ public:
return false;
}
int GetBanTime() const {
if (IsGood()) return 0;
if (clientVersion && clientVersion < minimunClientVersion) { return 604800; }
if (clientVersion && clientVersion < REQUIRE_VERSION) { return 604800; }
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; }

Loading…
Cancel
Save