cmd/geth, eth: move --genesis deprecation warning to cmd/geth

This prevents display of the warning for --dev and --olympic.
This commit is contained in:
Felix Lange
2016-04-01 21:55:30 +02:00
parent 78b70d79ec
commit cf842b3fe5
2 changed files with 6 additions and 4 deletions

View File

@ -169,10 +169,6 @@ func New(ctx *node.ServiceContext, config *Config) (*Ethereum, error) {
// Load up any custom genesis block if requested
if len(config.Genesis) > 0 {
// Using println instead of glog to make sure it **always** displays regardless of
// verbosity settings.
common.PrintDepricationWarning("--genesis is deprecated. Switch to use 'geth init /path/to/file'")
block, err := core.WriteGenesisBlock(chainDb, strings.NewReader(config.Genesis))
if err != nil {
return nil, err