diff options
author | Péter Szilágyi <peterke@gmail.com> | 2017-07-04 17:28:58 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2017-07-04 17:28:58 +0800 |
commit | 8f12d76a4723ba011d033533871a0e06e1243d7c (patch) | |
tree | 35805a9d44bba26188f7ad3a953c0ea25802e33d /core/genesis_test.go | |
parent | a0aa071ca6f6bfd77fb57273ef5477d3aa2ac6c0 (diff) | |
download | dexon-8f12d76a4723ba011d033533871a0e06e1243d7c.tar dexon-8f12d76a4723ba011d033533871a0e06e1243d7c.tar.gz dexon-8f12d76a4723ba011d033533871a0e06e1243d7c.tar.bz2 dexon-8f12d76a4723ba011d033533871a0e06e1243d7c.tar.lz dexon-8f12d76a4723ba011d033533871a0e06e1243d7c.tar.xz dexon-8f12d76a4723ba011d033533871a0e06e1243d7c.tar.zst dexon-8f12d76a4723ba011d033533871a0e06e1243d7c.zip |
params: remove redundant consts, disable metro on AllProtocolChanges
Diffstat (limited to 'core/genesis_test.go')
-rw-r--r-- | core/genesis_test.go | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/core/genesis_test.go b/core/genesis_test.go index 4312a80b8..bc82fe54e 100644 --- a/core/genesis_test.go +++ b/core/genesis_test.go @@ -32,12 +32,12 @@ import ( func TestDefaultGenesisBlock(t *testing.T) { block, _ := DefaultGenesisBlock().ToBlock() - if block.Hash() != params.MainNetGenesisHash { - t.Errorf("wrong mainnet genesis hash, got %v, want %v", block.Hash(), params.MainNetGenesisHash) + if block.Hash() != params.MainnetGenesisHash { + t.Errorf("wrong mainnet genesis hash, got %v, want %v", block.Hash(), params.MainnetGenesisHash) } block, _ = DefaultTestnetGenesisBlock().ToBlock() - if block.Hash() != params.TestNetGenesisHash { - t.Errorf("wrong testnet genesis hash, got %v, want %v", block.Hash(), params.TestNetGenesisHash) + if block.Hash() != params.TestnetGenesisHash { + t.Errorf("wrong testnet genesis hash, got %v, want %v", block.Hash(), params.TestnetGenesisHash) } } @@ -73,7 +73,7 @@ func TestSetupGenesis(t *testing.T) { fn: func(db ethdb.Database) (*params.ChainConfig, common.Hash, error) { return SetupGenesisBlock(db, nil) }, - wantHash: params.MainNetGenesisHash, + wantHash: params.MainnetGenesisHash, wantConfig: params.MainnetChainConfig, }, { @@ -82,7 +82,7 @@ func TestSetupGenesis(t *testing.T) { DefaultGenesisBlock().MustCommit(db) return SetupGenesisBlock(db, nil) }, - wantHash: params.MainNetGenesisHash, + wantHash: params.MainnetGenesisHash, wantConfig: params.MainnetChainConfig, }, { @@ -100,8 +100,8 @@ func TestSetupGenesis(t *testing.T) { customg.MustCommit(db) return SetupGenesisBlock(db, DefaultTestnetGenesisBlock()) }, - wantErr: &GenesisMismatchError{Stored: customghash, New: params.TestNetGenesisHash}, - wantHash: params.TestNetGenesisHash, + wantErr: &GenesisMismatchError{Stored: customghash, New: params.TestnetGenesisHash}, + wantHash: params.TestnetGenesisHash, wantConfig: params.TestnetChainConfig, }, { |