-
Notifications
You must be signed in to change notification settings - Fork 852
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
Enable limit on range Of JSON-RPC API trace_filter method (#5971) #6446
Enable limit on range Of JSON-RPC API trace_filter method (#5971) #6446
Conversation
|
9d2c922
to
d743aaf
Compare
…r#5971) Enable a limit on the range of blocks that can be supplied to the JSON-RPC trace_filter method. The limit has a default value and can be overridden with a command line option at start up. Signed-off-by: alyokaz <[email protected]>
d743aaf
to
8aba27f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the PR! I have added some comments in the code.
- This is a breaking change. Could you please add a entry to the changelog?
- Also, a unit test similar to
shouldFailIfParamsExceedMaxRange
would be nice
...pi/src/main/java/org/hyperledger/besu/ethereum/api/jsonrpc/internal/methods/TraceFilter.java
Outdated
Show resolved
Hide resolved
...pi/src/main/java/org/hyperledger/besu/ethereum/api/jsonrpc/internal/methods/TraceFilter.java
Outdated
Show resolved
Hide resolved
Signed-off-by: alyokaz <[email protected]>
Signed-off-by: alyokaz <[email protected]>
Signed-off-by: alyokaz <[email protected]>
Signed-off-by: alyokaz <[email protected]>
Signed-off-by: alyokaz <[email protected]>
Changelog entry added. I've added a unit test for TraceFilter covering the new option. I wanted to add a test for the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good, just a text suggestion and the the right copyright for the test class
...rc/test/java/org/hyperledger/besu/ethereum/api/jsonrpc/internal/methods/TraceFilterTest.java
Outdated
Show resolved
Hide resolved
Signed-off-by: alyokaz <[email protected]>
Signed-off-by: alyokaz <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
approved with a couple of minor nits
...rc/test/java/org/hyperledger/besu/ethereum/api/jsonrpc/internal/methods/TraceFilterTest.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Sally MacFarlane <[email protected]>
Enable a limit on the range of blocks that can be supplied to the JSON-RPC trace_filter method.
The limit has a default value and can be overridden with a command line option at start up.
fixes #5971