From 8dddb63449d3d1439357a3bccd5c3cf828136ea5 Mon Sep 17 00:00:00 2001 From: Wei-Ning Huang Date: Sun, 16 Jun 2019 14:31:45 +0800 Subject: params: update testnet and remove DEXON testnets --- dex/config.go | 2 +- dex/handler.go | 2 +- dex/protocol_test.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'dex') diff --git a/dex/config.go b/dex/config.go index 1c1b588d3..dd93146bd 100644 --- a/dex/config.go +++ b/dex/config.go @@ -36,7 +36,7 @@ import ( // DefaultConfig contains default settings for use on the Ethereum main net. var DefaultConfig = Config{ SyncMode: downloader.FastSync, - NetworkId: 237, + NetworkId: 373, LightPeers: 100, DatabaseCache: 768, TrieCleanCache: 256, diff --git a/dex/handler.go b/dex/handler.go index 0f0b33534..2c849b8ee 100644 --- a/dex/handler.go +++ b/dex/handler.go @@ -1372,7 +1372,7 @@ func (pm *ProtocolManager) peerSetLoop() { // NodeInfo represents a short summary of the Ethereum sub-protocol metadata // known about the host peer. type NodeInfo struct { - Network uint64 `json:"network"` // DEXON network ID (237=Mainnet, 238=Taiwan, 239=Taipei, 240=Yilan) + Network uint64 `json:"network"` // DEXON network ID (373=Mainnet, 374=Taiwan) Number uint64 `json:"number"` // Total difficulty of the host's blockchain Genesis common.Hash `json:"genesis"` // SHA3 hash of the host's genesis block Config *params.ChainConfig `json:"config"` // Chain configuration for the fork rules diff --git a/dex/protocol_test.go b/dex/protocol_test.go index 68b5c4b86..605cd0dec 100644 --- a/dex/protocol_test.go +++ b/dex/protocol_test.go @@ -73,7 +73,7 @@ func testStatusMsgErrors(t *testing.T, protocol int) { }, { code: StatusMsg, data: statusData{uint32(protocol), 999, number, head.Hash(), genesis.Hash()}, - wantError: errResp(ErrNetworkIdMismatch, "999 (!= 237)"), + wantError: errResp(ErrNetworkIdMismatch, "999 (!= 373)"), }, { code: StatusMsg, data: statusData{uint32(protocol), DefaultConfig.NetworkId, number, head.Hash(), common.Hash{3}}, -- cgit