diff options
author | Mission Liao <mission.liao@dexon.org> | 2019-02-25 19:08:17 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@byzantine-lab.io> | 2019-06-12 17:27:22 +0800 |
commit | 20718c049c3988f6aac25bee2d33f959ad517deb (patch) | |
tree | 19fc4ec3a0f5fbcfa753353c87a5da545a8c4cd0 /core/genesis_test.go | |
parent | 8e92e73dc650ac03c228fbb26a3afe88a5bc237c (diff) | |
download | go-tangerine-20718c049c3988f6aac25bee2d33f959ad517deb.tar go-tangerine-20718c049c3988f6aac25bee2d33f959ad517deb.tar.gz go-tangerine-20718c049c3988f6aac25bee2d33f959ad517deb.tar.bz2 go-tangerine-20718c049c3988f6aac25bee2d33f959ad517deb.tar.lz go-tangerine-20718c049c3988f6aac25bee2d33f959ad517deb.tar.xz go-tangerine-20718c049c3988f6aac25bee2d33f959ad517deb.tar.zst go-tangerine-20718c049c3988f6aac25bee2d33f959ad517deb.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) |