Skip to content

fix(jsonrpc): use min(to, currentMaxBlock) to compare with maxBlockRange #6275

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

Merged

Conversation

waynercheung
Copy link
Contributor

@waynercheung waynercheung commented Apr 2, 2025

What does this PR do?
use min(to, currentMaxBlock) to compare with maxBlockRange

Why are these changes required?
When input to is "latest", it will be set to Long.MAX_VALUE, so we need to use min(to, currentMaxBlock) to compare with maxBlockRange

This PR has been tested by:

  • Unit Tests
  • Manual Testing

Follow up

Extra details

@waynercheung waynercheung force-pushed the feat/harden_filters branch from fd6e091 to 00fcf04 Compare April 2, 2025 10:47
@waynercheung waynercheung force-pushed the feat/harden_filters branch from 00fcf04 to 95082c2 Compare April 2, 2025 10:53
@CodeNinjaEvan CodeNinjaEvan merged commit 8201860 into tronprotocol:release_v4.8.0 Apr 2, 2025
6 checks passed
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.

4 participants