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

[RPC] add SAFE and FINALIZED options for block param #4902

Merged
merged 10 commits into from Jan 11, 2023

Conversation

macfarla
Copy link
Contributor

RPC method changes

  • add SAFE and FINALIZED options for block param
  • check length of blockNumber / blockHash param - if it's too short to be a blockHash and too long to be a blockNumber, throw Invalid params
  • added some extra tests. Specifically this file eth_getTransactionCount_invalidBlockNumber.json - without the code changes in this PR, that spec test returns "block not found", with these changes returns Invalid params

See #4233

Documentation

  • I thought about documentation and added the doc-change-required label to this PR if
    updates are required.

Changelog

Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
@macfarla macfarla enabled auto-merge (squash) January 11, 2023 22:48
@macfarla macfarla merged commit 45c2c47 into hyperledger:main Jan 11, 2023
@macfarla macfarla deleted the rpc-check-block-param-length branch January 28, 2023 04:39
eum602 pushed a commit to lacchain/besu that referenced this pull request Nov 3, 2023
* new test file with a block number param that is too long to be a block number

* check for block hash parameter length

* added unit test for safe & finalized

Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants