diff options
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}}, |