Skip to content

internal/ethapi: recap higher args.Gas with block GasLimit in DoEstimateGas#29738

Merged
karalabe merged 5 commits into
ethereum:masterfrom
SangIlMo:fix/esitmateGas_uses_global_gas_cap_#29695
Jun 4, 2024
Merged

internal/ethapi: recap higher args.Gas with block GasLimit in DoEstimateGas#29738
karalabe merged 5 commits into
ethereum:masterfrom
SangIlMo:fix/esitmateGas_uses_global_gas_cap_#29695

Conversation

@SangIlMo
Copy link
Copy Markdown
Contributor

@SangIlMo SangIlMo commented May 8, 2024

Fix the issue (#29695)

We can just recap the args.Gas with block GasLimit when gas is over block GasLimit.

It still enables check the case when args.Gas == nil, and makes args.Gas is capped with block GasLimit

Comment thread internal/ethapi/api.go Outdated
@fjl fjl removed the status:triage label May 28, 2024
@karalabe karalabe added this to the 1.14.4 milestone Jun 3, 2024
Copy link
Copy Markdown
Member

@karalabe karalabe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SGTM

@karalabe karalabe merged commit 682ae83 into ethereum:master Jun 4, 2024
jorgemmsilva pushed a commit to iotaledger/go-ethereum that referenced this pull request Jun 17, 2024
…ateGas (ethereum#29738)

* internal/ethapi: recap higher args.Gas with block GasLimit in DoEstimateGas

* internal/ethapi: fix gas estimator capping code

* internal/ethapi: fix test

* fix goimports lint (remove space)

---------

Co-authored-by: Péter Szilágyi <peterke@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants