From 445e3d338e8582201ec3ba7672714abe4b0a3781 Mon Sep 17 00:00:00 2001 From: "Jonathan \"Duke\" Leto" Date: Tue, 22 Oct 2019 18:13:18 -0700 Subject: [PATCH] update ports and version --- bitcoin.cpp | 2 +- coin.h | 6 +++--- combine.pl | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/bitcoin.cpp b/bitcoin.cpp index 2059ef0..1af523f 100644 --- a/bitcoin.cpp +++ b/bitcoin.cpp @@ -81,7 +81,7 @@ class CNode { CAddress me(CService("0.0.0.0")); BeginMessage("version"); int nBestHeight = GetRequireHeight(); - string ver = "/hush-seeder:0.02/"; + string ver = "/hush-seeder:0.03/"; vSend << PROTOCOL_VERSION << nLocalServices << nTime << you << me << nLocalNonce << ver << nBestHeight; EndMessage(); } diff --git a/coin.h b/coin.h index aeec2ab..0a37a69 100644 --- a/coin.h +++ b/coin.h @@ -17,8 +17,8 @@ static const std::string mainnet_seeds[] = {"explorer.myhush.org", static const std::string testnet_seeds[] = {"stilgar.myhush.org", ""}; -static const int mainnet_port = 8888; -static const int testnet_port = 18888; +static const int mainnet_port = 18030; +static const int testnet_port = 28030; static unsigned char pchMessageStart[4] = { 0x24, 0xe9, 0x27, 0x64 }; static unsigned char pchMessageStart_testnet[4] = { 0xfa, 0x1a, 0xf9, 0xbf }; @@ -27,4 +27,4 @@ static const int minimunClientVersion = 170002; static const int PROTOCOL_VERSION = 170002; static const int INIT_PROTO_VERSION = 209; -#endif // __INCLUDED_COIN_H__ \ No newline at end of file +#endif // __INCLUDED_COIN_H__ diff --git a/combine.pl b/combine.pl index 4086e38..f6484d0 100644 --- a/combine.pl +++ b/combine.pl @@ -58,7 +58,7 @@ for my $file (@ARGV) { } for my $addr (sort { $res->{$b} <=> $res->{$a} } (keys %{$res})) { - if ($addr =~ /\A(\d+)\.(\d+)\.(\d+)\.(\d+):8888/) { + if ($addr =~ /\A(\d+)\.(\d+)\.(\d+)\.(\d+):18030/) { my $a = $1*0x1000000 + $2*0x10000 + $3*0x100 + $4; printf "0x%08x %s %g%%\n",$a,$addr,(1-((1-$res->{$addr}) ** (1/$n)))*100; }