aboutsummaryrefslogtreecommitdiffstats
path: root/core/genesis.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2017-07-04 17:28:58 +0800
committerPéter Szilágyi <peterke@gmail.com>2017-07-04 17:28:58 +0800
commit8f12d76a4723ba011d033533871a0e06e1243d7c (patch)
tree35805a9d44bba26188f7ad3a953c0ea25802e33d /core/genesis.go
parenta0aa071ca6f6bfd77fb57273ef5477d3aa2ac6c0 (diff)
downloaddexon-8f12d76a4723ba011d033533871a0e06e1243d7c.tar.gz
dexon-8f12d76a4723ba011d033533871a0e06e1243d7c.tar.zst
dexon-8f12d76a4723ba011d033533871a0e06e1243d7c.zip
params: remove redundant consts, disable metro on AllProtocolChanges
Diffstat (limited to 'core/genesis.go')
-rw-r--r--core/genesis.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/genesis.go b/core/genesis.go
index 5815d5901..d587011f0 100644
--- a/core/genesis.go
+++ b/core/genesis.go
@@ -143,7 +143,7 @@ func SetupGenesisBlock(db ethdb.Database, genesis *Genesis) (*params.ChainConfig
// Special case: don't change the existing config of a non-mainnet chain if no new
// config is supplied. These chains would get AllProtocolChanges (and a compat error)
// if we just continued here.
- if genesis == nil && stored != params.MainNetGenesisHash {
+ if genesis == nil && stored != params.MainnetGenesisHash {
return storedcfg, stored, nil
}
@@ -164,9 +164,9 @@ func (g *Genesis) configOrDefault(ghash common.Hash) *params.ChainConfig {
switch {
case g != nil:
return g.Config
- case ghash == params.MainNetGenesisHash:
+ case ghash == params.MainnetGenesisHash:
return params.MainnetChainConfig
- case ghash == params.TestNetGenesisHash:
+ case ghash == params.TestnetGenesisHash:
return params.TestnetChainConfig
default:
return params.AllProtocolChanges