diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/block_test_util.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/block_test_util.go b/tests/block_test_util.go index e624cced0..f7c2208b3 100644 --- a/tests/block_test_util.go +++ b/tests/block_test_util.go @@ -160,6 +160,8 @@ func runBlockTests(bt map[string]*BlockTest, skipTests []string) error { } func runBlockTest(test *BlockTest) error { cfg := test.makeEthConfig() + cfg.GenesisBlock = test.Genesis + ethereum, err := eth.New(cfg) if err != nil { return err @@ -170,9 +172,6 @@ func runBlockTest(test *BlockTest) error { return err } - // import the genesis block - ethereum.ResetWithGenesisBlock(test.Genesis) - // import pre accounts statedb, err := test.InsertPreState(ethereum) if err != nil { |