aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/geth
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2016-04-02 17:40:25 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2016-04-02 17:40:25 +0800
commit96c7c39ae4a031a508b0470ff2b1a95f0f3f9e51 (patch)
tree394b3366a84ed3460233848849e84a96025fb2d4 /cmd/geth
parentfb578f4550a08617485d9146876489d1f3bb1b52 (diff)
parentcf842b3fe5ad497ef8dfd24c9179bc2fadbc707f (diff)
downloadgo-tangerine-96c7c39ae4a031a508b0470ff2b1a95f0f3f9e51.tar
go-tangerine-96c7c39ae4a031a508b0470ff2b1a95f0f3f9e51.tar.gz
go-tangerine-96c7c39ae4a031a508b0470ff2b1a95f0f3f9e51.tar.bz2
go-tangerine-96c7c39ae4a031a508b0470ff2b1a95f0f3f9e51.tar.lz
go-tangerine-96c7c39ae4a031a508b0470ff2b1a95f0f3f9e51.tar.xz
go-tangerine-96c7c39ae4a031a508b0470ff2b1a95f0f3f9e51.tar.zst
go-tangerine-96c7c39ae4a031a508b0470ff2b1a95f0f3f9e51.zip
Merge pull request #2409 from fjl/geth-fixup-init
cmd/geth: fix startup with empty database
Diffstat (limited to 'cmd/geth')
-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
}