diff options
author | Wei-Ning Huang <w@byzantine-lab.io> | 2019-09-17 17:24:32 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@byzantine-lab.io> | 2019-09-17 18:43:49 +0800 |
commit | dfb2aed0282a889154318739e12374dd1cf6a431 (patch) | |
tree | 73895d19ba4c53307d3cf883f529921813c777d7 /dex | |
parent | 52e5ff1385f52af7ba03483676c25de12c8027a3 (diff) | |
download | go-tangerine-dfb2aed0282a889154318739e12374dd1cf6a431.tar go-tangerine-dfb2aed0282a889154318739e12374dd1cf6a431.tar.gz go-tangerine-dfb2aed0282a889154318739e12374dd1cf6a431.tar.bz2 go-tangerine-dfb2aed0282a889154318739e12374dd1cf6a431.tar.lz go-tangerine-dfb2aed0282a889154318739e12374dd1cf6a431.tar.xz go-tangerine-dfb2aed0282a889154318739e12374dd1cf6a431.tar.zst go-tangerine-dfb2aed0282a889154318739e12374dd1cf6a431.zip |
core: update mainnet chain ID to 411
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 dd93146bd..ce6497ee8 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: 373, + NetworkId: 411, LightPeers: 100, DatabaseCache: 768, TrieCleanCache: 256, diff --git a/dex/handler.go b/dex/handler.go index 8031f3639..1c87d322c 100644 --- a/dex/handler.go +++ b/dex/handler.go @@ -1411,7 +1411,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"` // Network ID (373=Mainnet, 374=Testnet) + Network uint64 `json:"network"` // Network ID (411=Mainnet, 374=Testnet) 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 bd0a77dfa..f90f95cb5 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 (!= 373)"), + wantError: errResp(ErrNetworkIdMismatch, "999 (!= 411)"), }, { code: StatusMsg, data: statusData{uint32(protocol), DefaultConfig.NetworkId, number, head.Hash(), common.Hash{3}}, |