aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/utils/flags.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2017-04-25 23:30:56 +0800
committerGitHub <noreply@github.com>2017-04-25 23:30:56 +0800
commitfff16169c64a83d57d2eed35b6a2e33248c7d5eb (patch)
tree9dd32e8fb794b4950313ae2b2cd5499bb60dc4cd /cmd/utils/flags.go
parentba3bcd16a6d99bc0e58516556df8e96b730c2d60 (diff)
parente61035c5a3630e4f6fd0fb3e5346a4eed8cedc80 (diff)
downloadgo-tangerine-fff16169c64a83d57d2eed35b6a2e33248c7d5eb.tar
go-tangerine-fff16169c64a83d57d2eed35b6a2e33248c7d5eb.tar.gz
go-tangerine-fff16169c64a83d57d2eed35b6a2e33248c7d5eb.tar.bz2
go-tangerine-fff16169c64a83d57d2eed35b6a2e33248c7d5eb.tar.lz
go-tangerine-fff16169c64a83d57d2eed35b6a2e33248c7d5eb.tar.xz
go-tangerine-fff16169c64a83d57d2eed35b6a2e33248c7d5eb.tar.zst
go-tangerine-fff16169c64a83d57d2eed35b6a2e33248c7d5eb.zip
Merge pull request #14377 from karalabe/unify-network-ids
cmd, eth, les, mobile: make networkid uint64 everywhere
Diffstat (limited to 'cmd/utils/flags.go')
-rw-r--r--cmd/utils/flags.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go
index af9585bd0..afaa7214b 100644
--- a/cmd/utils/flags.go
+++ b/cmd/utils/flags.go
@@ -148,7 +148,7 @@ var (
Usage: "Number of recent ethash mining DAGs to keep on disk (1+GB each)",
Value: eth.DefaultConfig.EthashDatasetsOnDisk,
}
- NetworkIdFlag = cli.IntFlag{
+ NetworkIdFlag = cli.Uint64Flag{
Name: "networkid",
Usage: "Network identifier (integer, 1=Frontier, 2=Morden (disused), 3=Ropsten)",
Value: eth.DefaultConfig.NetworkId,
@@ -806,7 +806,7 @@ func SetEthConfig(ctx *cli.Context, stack *node.Node, cfg *eth.Config) {
cfg.LightPeers = ctx.GlobalInt(LightPeersFlag.Name)
}
if ctx.GlobalIsSet(NetworkIdFlag.Name) {
- cfg.NetworkId = ctx.GlobalInt(NetworkIdFlag.Name)
+ cfg.NetworkId = ctx.GlobalUint64(NetworkIdFlag.Name)
}
// Ethereum needs to know maxPeers to calculate the light server peer ratio.