diff options
author | Mission Liao <mission.liao@dexon.org> | 2019-02-25 19:08:17 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-04-09 21:32:57 +0800 |
commit | 27d1254cd5459b69217b4b7877493a008e9dbe3e (patch) | |
tree | 125e8c41dd2c5a3fbde1d968d111c2f71dcec10e /core/genesis_test.go | |
parent | 5832a21db625bfa98a3b7909bb6996dd1fd2e4d3 (diff) | |
download | dexon-27d1254cd5459b69217b4b7877493a008e9dbe3e.tar dexon-27d1254cd5459b69217b4b7877493a008e9dbe3e.tar.gz dexon-27d1254cd5459b69217b4b7877493a008e9dbe3e.tar.bz2 dexon-27d1254cd5459b69217b4b7877493a008e9dbe3e.tar.lz dexon-27d1254cd5459b69217b4b7877493a008e9dbe3e.tar.xz dexon-27d1254cd5459b69217b4b7877493a008e9dbe3e.tar.zst dexon-27d1254cd5459b69217b4b7877493a008e9dbe3e.zip |
params: add Yilan network (#207)
* Add Yilan network
* Fixup: remove dummy log
Diffstat (limited to 'core/genesis_test.go')
-rw-r--r-- | core/genesis_test.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/core/genesis_test.go b/core/genesis_test.go index 9db96c271..c083ed9aa 100644 --- a/core/genesis_test.go +++ b/core/genesis_test.go @@ -105,6 +105,16 @@ func TestSetupGenesis(t *testing.T) { wantConfig: params.TestnetChainConfig, }, { + name: "custom block in DB, genesis == yilan", + fn: func(db ethdb.Database) (*params.ChainConfig, common.Hash, error) { + customg.MustCommit(db) + return SetupGenesisBlock(db, DefaultYilanGenesisBlock()) + }, + wantErr: &GenesisMismatchError{Stored: customghash, New: params.YilanGenesisHash}, + wantHash: params.YilanGenesisHash, + wantConfig: params.YilanChainConfig, + }, + { name: "compatible config in DB", fn: func(db ethdb.Database) (*params.ChainConfig, common.Hash, error) { oldcustomg.MustCommit(db) |