Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[node] increase block gas limit to 50m #4119

Merged
merged 1 commit into from
Apr 5, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions node/worker/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down