Skip to content

eth: accept a block hash in eth_estimateGas and eth_createAccessList - #889

Open
MysticRyuujin wants to merge 1 commit into
ethereum:mainfrom
MysticRyuujin:estimate-block-hash
Open

MysticRyuujin wants to merge 1 commit into
ethereum:mainfrom
MysticRyuujin:estimate-block-hash

Conversation

@MysticRyuujin

Copy link
Copy Markdown
Contributor

eth_call takes BlockNumberOrTagOrHash for its block parameter. eth_estimateGas and eth_createAccessList take BlockNumberOrTag, so the spec rejects a block hash that every client accepts (#491).

This PR changes both parameters to BlockNumberOrTagOrHash and adds one fixture per method that passes the head block hash: estimate-blockhash and create-al-blockhash. Both are exact-match. The estimate returns 21000 for the transfer, the same as estimate-simple-transfer at latest.

make fill regenerates only the two new fixtures. make build, make test, make lint and the tools lint and test pass.

#888 edits the description line of the same two parameters. The two PRs touch adjacent lines, so whichever merges second needs a trivial rebase.

Closes #491.

@MysticRyuujin MysticRyuujin mentioned this pull request Sep 13, 2026
29 tasks
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.

eth_estimateGas With Block Hash Parameter

1 participant