mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 06:36:43 +00:00
PIP-60: Increase gas limit to 45M (#1548)
This commit is contained in:
parent
c020756588
commit
ca5b093605
2 changed files with 4 additions and 2 deletions
|
|
@ -30,6 +30,7 @@ import (
|
||||||
"github.com/ethereum/go-ethereum/eth/gasprice"
|
"github.com/ethereum/go-ethereum/eth/gasprice"
|
||||||
"github.com/ethereum/go-ethereum/internal/cli/server/chains"
|
"github.com/ethereum/go-ethereum/internal/cli/server/chains"
|
||||||
"github.com/ethereum/go-ethereum/log"
|
"github.com/ethereum/go-ethereum/log"
|
||||||
|
"github.com/ethereum/go-ethereum/miner"
|
||||||
"github.com/ethereum/go-ethereum/node"
|
"github.com/ethereum/go-ethereum/node"
|
||||||
"github.com/ethereum/go-ethereum/p2p"
|
"github.com/ethereum/go-ethereum/p2p"
|
||||||
"github.com/ethereum/go-ethereum/p2p/enode"
|
"github.com/ethereum/go-ethereum/p2p/enode"
|
||||||
|
|
@ -676,7 +677,7 @@ func DefaultConfig() *Config {
|
||||||
Sealer: &SealerConfig{
|
Sealer: &SealerConfig{
|
||||||
Enabled: false,
|
Enabled: false,
|
||||||
Etherbase: "",
|
Etherbase: "",
|
||||||
GasCeil: 30_000_000, // geth's default
|
GasCeil: miner.DefaultConfig.GasCeil,
|
||||||
GasPrice: big.NewInt(params.BorDefaultMinerGasPrice), // bor's default
|
GasPrice: big.NewInt(params.BorDefaultMinerGasPrice), // bor's default
|
||||||
ExtraData: "",
|
ExtraData: "",
|
||||||
Recommit: 125 * time.Second,
|
Recommit: 125 * time.Second,
|
||||||
|
|
|
||||||
|
|
@ -58,7 +58,8 @@ type Config struct {
|
||||||
|
|
||||||
// DefaultConfig contains default settings for miner.
|
// DefaultConfig contains default settings for miner.
|
||||||
var DefaultConfig = Config{
|
var DefaultConfig = Config{
|
||||||
GasCeil: 30_000_000,
|
// Polygon/bor: PIP-60 (increase gas limit to 45M)
|
||||||
|
GasCeil: 45_000_000,
|
||||||
GasPrice: big.NewInt(params.BorDefaultMinerGasPrice), // enforces minimum gas price of 25 gwei in bor
|
GasPrice: big.NewInt(params.BorDefaultMinerGasPrice), // enforces minimum gas price of 25 gwei in bor
|
||||||
|
|
||||||
// The default recommit time is chosen as two seconds since
|
// The default recommit time is chosen as two seconds since
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue