Browse Source

update ports and version

master
Jonathan "Duke" Leto 5 years ago
parent
commit
445e3d338e
  1. 2
      bitcoin.cpp
  2. 6
      coin.h
  3. 2
      combine.pl

2
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();
}

6
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__
#endif // __INCLUDED_COIN_H__

2
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;
}

Loading…
Cancel
Save