Skip to content

Commit 9e31c48

Browse files
committed
core: fix genesis test by adding ethash config
1 parent e65c08f commit 9e31c48

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/genesis_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,14 @@ func testSetupGenesis(t *testing.T, scheme string) {
4444
var (
4545
customghash = common.HexToHash("0x89c99d90b79719238d2645c7642f2c9295246e80775b38cfd162b696817fbd50")
4646
customg = Genesis{
47-
Config: &params.ChainConfig{HomesteadBlock: big.NewInt(3)},
47+
Config: &params.ChainConfig{HomesteadBlock: big.NewInt(3), Ethash: &params.EthashConfig{}},
4848
Alloc: types.GenesisAlloc{
4949
{1}: {Balance: big.NewInt(1), Storage: map[common.Hash]common.Hash{{1}: {1}}},
5050
},
5151
}
5252
oldcustomg = customg
5353
)
54-
oldcustomg.Config = &params.ChainConfig{HomesteadBlock: big.NewInt(2)}
54+
oldcustomg.Config = &params.ChainConfig{HomesteadBlock: big.NewInt(2), Ethash: &params.EthashConfig{}}
5555

5656
tests := []struct {
5757
name string

0 commit comments

Comments
 (0)