Merge pull request #4119 from rlan35/gaslimit2

increase block gas limit to 50m
pull/4217/head
Soph 3 years ago committed by GitHub
commit cea90ca4c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      node/worker/worker.go

@ -69,9 +69,9 @@ func (w *Worker) CommitSortedTransactions(
coinbase common.Address,
) {
for {
if w.current.gasPool.Gas() < 60000000 {
// Temporary solution to reduce the fullness of the block. Break here when the available gas left hit 60M.
// Effectively making the gas limit 20M (since 80M is the default gas limit)
if w.current.gasPool.Gas() < 30000000 {
// Temporary solution to reduce the fullness of the block. Break here when the available gas left hit 30M.
// Effectively making the gas limit 50M (since 80M is the default gas limit)
utils.Logger().Info().Uint64("have", w.current.gasPool.Gas()).Uint64("want", params.TxGas).Msg("[Temp Gas Limit] Not enough gas for further transactions")
break
}

Loading…
Cancel
Save