From c701cf90b815e458a8cf4807e26a7f2dcb144006 Mon Sep 17 00:00:00 2001 From: Sina Mahmoodi Date: Wed, 18 Sep 2024 17:04:27 +0200 Subject: [PATCH] core: fix dev mode genesis --- core/genesis.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/genesis.go b/core/genesis.go index 8ea9bfb30f..2bc737f1bc 100644 --- a/core/genesis.go +++ b/core/genesis.go @@ -180,6 +180,7 @@ func flushAlloc(ga *types.GenesisAlloc, triedb *triedb.Database) (common.Hash, e func getGenesisState(db ethdb.Database, blockhash common.Hash) (alloc types.GenesisAlloc, err error) { blob := rawdb.ReadGenesisStateSpec(db, blockhash) if len(blob) != 0 { + fmt.Printf("genesis json: %s\n", blob) if err := alloc.UnmarshalJSON(blob); err != nil { return nil, err } @@ -591,7 +592,7 @@ func DeveloperGenesisBlock(gasLimit uint64, faucet *common.Address) *Genesis { // Pre-deploy EIP-4788 system contract params.BeaconRootsAddress: {Nonce: 1, Code: params.BeaconRootsCode, Balance: common.Big0}, // Pre-deploy EIP-2935 history contract. - params.HistoryStorageAddress: {Nonce: 1, Code: params.HistoryStorageCode}, + params.HistoryStorageAddress: {Nonce: 1, Code: params.HistoryStorageCode, Balance: common.Big0}, }, } if faucet != nil {