From 42d152bc02cdbeda41a56c02746ea0f518104b20 Mon Sep 17 00:00:00 2001 From: Duke Leto Date: Wed, 26 May 2021 08:32:55 -0400 Subject: [PATCH] Fix seeds and proto version --- coin.h | 32 ++++++++++++++------------------ db.h | 3 ++- 2 files changed, 16 insertions(+), 19 deletions(-) diff --git a/coin.h b/coin.h index f75c84e..11f7f33 100644 --- a/coin.h +++ b/coin.h @@ -8,37 +8,33 @@ #include -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__ diff --git a/db.h b/db.h index d957ce7..d35dd38 100644 --- a/db.h +++ b/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; }