Skip to content

Commit 9e88224

Browse files
authored
core: raise gas limit in --dev mode, seed blake precompile (#21323)
* Set gasLimit in --dev mode to be 9m. * core: Set gasLimit to 11.5 milion and add 1 wei allocation for BLAKE2b
1 parent 2956937 commit 9e88224

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/genesis.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ func DeveloperGenesisBlock(period uint64, faucet common.Address) *Genesis {
400400
return &Genesis{
401401
Config: &config,
402402
ExtraData: append(append(make([]byte, 32), faucet[:]...), make([]byte, crypto.SignatureLength)...),
403-
GasLimit: 6283185,
403+
GasLimit: 11500000,
404404
Difficulty: big.NewInt(1),
405405
Alloc: map[common.Address]GenesisAccount{
406406
common.BytesToAddress([]byte{1}): {Balance: big.NewInt(1)}, // ECRecover
@@ -411,6 +411,7 @@ func DeveloperGenesisBlock(period uint64, faucet common.Address) *Genesis {
411411
common.BytesToAddress([]byte{6}): {Balance: big.NewInt(1)}, // ECAdd
412412
common.BytesToAddress([]byte{7}): {Balance: big.NewInt(1)}, // ECScalarMul
413413
common.BytesToAddress([]byte{8}): {Balance: big.NewInt(1)}, // ECPairing
414+
common.BytesToAddress([]byte{9}): {Balance: big.NewInt(1)}, // BLAKE2b
414415
faucet: {Balance: new(big.Int).Sub(new(big.Int).Lsh(big.NewInt(1), 256), big.NewInt(9))},
415416
},
416417
}

0 commit comments

Comments
 (0)