aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2016-04-02 03:55:30 +0800
committerFelix Lange <fjl@twurst.com>2016-04-02 03:59:35 +0800
commitcf842b3fe5ad497ef8dfd24c9179bc2fadbc707f (patch)
tree394b3366a84ed3460233848849e84a96025fb2d4 /cmd
parent78b70d79ecdf9cde1b38855101840b19e365935c (diff)
downloaddexon-cf842b3fe5ad497ef8dfd24c9179bc2fadbc707f.tar
dexon-cf842b3fe5ad497ef8dfd24c9179bc2fadbc707f.tar.gz
dexon-cf842b3fe5ad497ef8dfd24c9179bc2fadbc707f.tar.bz2
dexon-cf842b3fe5ad497ef8dfd24c9179bc2fadbc707f.tar.lz
dexon-cf842b3fe5ad497ef8dfd24c9179bc2fadbc707f.tar.xz
dexon-cf842b3fe5ad497ef8dfd24c9179bc2fadbc707f.tar.zst
dexon-cf842b3fe5ad497ef8dfd24c9179bc2fadbc707f.zip
cmd/geth, eth: move --genesis deprecation warning to cmd/geth
This prevents display of the warning for --dev and --olympic.
Diffstat (limited to 'cmd')
-rw-r--r--cmd/geth/main.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/cmd/geth/main.go b/cmd/geth/main.go
index 5d5ab4559..3a6366f4d 100644
--- a/cmd/geth/main.go
+++ b/cmd/geth/main.go
@@ -359,6 +359,12 @@ JavaScript API. See https://github.com/ethereum/go-ethereum/wiki/Javascipt-Conso
go metrics.CollectProcessMetrics(3 * time.Second)
utils.SetupNetwork(ctx)
+
+ // Deprecation warning.
+ if ctx.GlobalIsSet(utils.GenesisFileFlag.Name) {
+ common.PrintDepricationWarning("--genesis is deprecated. Switch to use 'geth init /path/to/file'")
+ }
+
return nil
}