From af9a2b5a521ba2f61d462bba9a8bcaea1fcd16a0 Mon Sep 17 00:00:00 2001 From: Julian Yap Date: Sat, 19 Nov 2016 00:50:33 -1000 Subject: [PATCH] Modify default NetworkId --- cmd/utils/flags.go | 2 +- eth/protocol.go | 2 +- les/protocol.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go index b8fc9081e6..4bce4f6300 100644 --- a/cmd/utils/flags.go +++ b/cmd/utils/flags.go @@ -745,7 +745,7 @@ func RegisterEthService(ctx *cli.Context, stack *node.Node, extra []byte) { switch { case ctx.GlobalBool(OlympicFlag.Name): if !ctx.GlobalIsSet(NetworkIdFlag.Name) { - ethConf.NetworkId = 1 + ethConf.NetworkId = 88 } ethConf.Genesis = core.OlympicGenesisBlock() diff --git a/eth/protocol.go b/eth/protocol.go index f058596cca..a657fa9546 100644 --- a/eth/protocol.go +++ b/eth/protocol.go @@ -42,7 +42,7 @@ var ProtocolVersions = []uint{eth63, eth62} var ProtocolLengths = []uint64{17, 8} const ( - NetworkId = 1 + NetworkId = 88 ProtocolMaxMsgSize = 10 * 1024 * 1024 // Maximum cap on the size of a protocol message ) diff --git a/les/protocol.go b/les/protocol.go index 4eaaef87c7..e2b9f5892d 100644 --- a/les/protocol.go +++ b/les/protocol.go @@ -39,7 +39,7 @@ var ProtocolVersions = []uint{lpv1} var ProtocolLengths = []uint64{15} const ( - NetworkId = 1 + NetworkId = 88 ProtocolMaxMsgSize = 10 * 1024 * 1024 // Maximum cap on the size of a protocol message )