Skip to content

Commit

Permalink
Use block-gas-target flag in building block (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
DarianShawn authored May 24, 2022
1 parent 5f01f59 commit 4c4593b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion command/server/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,15 @@ func (p *serverParams) setRawJSONRPCAddress(jsonRPCAddress string) {
}

func (p *serverParams) generateConfig() *server.Config {
chainCfg := p.genesisConfig

// Replace block gas limit
if p.blockGasTarget > 0 {
chainCfg.Params.BlockGasTarget = p.blockGasTarget
}

return &server.Config{
Chain: p.genesisConfig,
Chain: chainCfg,
JSONRPC: &server.JSONRPC{
JSONRPCAddr: p.jsonRPCAddress,
AccessControlAllowOrigin: p.corsAllowedOrigins,
Expand Down

0 comments on commit 4c4593b

Please sign in to comment.