Skip to content

Commit

Permalink
Update gas limit target
Browse files Browse the repository at this point in the history
  • Loading branch information
R-Santev committed Dec 14, 2024
1 parent 7a2ac69 commit dc07e03
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
7 changes: 4 additions & 3 deletions command/genesis/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -419,9 +419,10 @@ func (p *genesisParams) initGenesisConfig() error {
GasUsed: command.DefaultGenesisGasUsed,
},
Params: &chain.Params{
ChainID: int64(p.chainID), //nolint:gosec
Forks: enabledForks,
Engine: p.consensusEngineConfig,
ChainID: int64(p.chainID), //nolint:gosec
Forks: enabledForks,
Engine: p.consensusEngineConfig,
BlockGasTarget: 100000000,
},
Bootnodes: p.bootnodes,
}
Expand Down
1 change: 1 addition & 0 deletions command/genesis/polybft_params.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ func (p *genesisParams) generatePolyBftChainConfig(o command.OutputFormatter) er
Engine: map[string]interface{}{
string(server.PolyBFTConsensus): polyBftConfig,
},
BlockGasTarget: 100000000,
},
Bootnodes: p.bootnodes,
}
Expand Down
2 changes: 1 addition & 1 deletion command/server/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ func DefaultConfig() *Config {
return &Config{
GenesisPath: "./genesis.json",
DataDir: "",
BlockGasTarget: "0x0", // Special value signaling the parent gas limit should be applied
BlockGasTarget: "0x5f5e100", // Special value signaling the parent gas limit should be applied
Network: &Network{
NoDiscover: defaultNetworkConfig.NoDiscover,
MaxPeers: defaultNetworkConfig.MaxPeers,
Expand Down

0 comments on commit dc07e03

Please sign in to comment.