diff options
author | Wei-Ning Huang <w@byzantine-lab.io> | 2019-06-16 14:31:45 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@byzantine-lab.io> | 2019-09-17 16:57:30 +0800 |
commit | 8dddb63449d3d1439357a3bccd5c3cf828136ea5 (patch) | |
tree | 3e1097004e9e0266ff5d7562fd7a2461134b9504 /dex | |
parent | 35998179f05b6c65250ef2dcfd8f83e49d2280a8 (diff) | |
download | go-tangerine-8dddb63449d3d1439357a3bccd5c3cf828136ea5.tar.gz go-tangerine-8dddb63449d3d1439357a3bccd5c3cf828136ea5.tar.zst go-tangerine-8dddb63449d3d1439357a3bccd5c3cf828136ea5.zip |
params: update testnet and remove DEXON testnets
Diffstat (limited to 'dex')
-rw-r--r-- | dex/config.go | 2 | ||||
-rw-r--r-- | dex/handler.go | 2 | ||||
-rw-r--r-- | dex/protocol_test.go | 2 |
3 files changed, 3 insertions, 3 deletions
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}}, |