Skip to content

Commit a71922d

Browse files
committed
add history storage to dev genesis
1 parent 24c3fe8 commit a71922d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/genesis.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -500,6 +500,8 @@ func DeveloperGenesisBlock(period uint64, gasLimit uint64, faucet common.Address
500500
common.BytesToAddress([]byte{7}): {Balance: big.NewInt(1)}, // ECScalarMul
501501
common.BytesToAddress([]byte{8}): {Balance: big.NewInt(1)}, // ECPairing
502502
common.BytesToAddress([]byte{9}): {Balance: big.NewInt(1)}, // BLAKE2b
503+
// Pre-deploy EIP-2935 history contract.
504+
params.HistoryStorageAddress: {Nonce: 1, Code: params.HistoryStorageCode, Balance: common.Big0},
503505
// LSH 250 due to finite field limitation
504506
faucet: {Balance: new(big.Int).Sub(new(big.Int).Lsh(big.NewInt(1), 250), big.NewInt(9))},
505507
},

0 commit comments

Comments
 (0)