-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: cherry pick feat: enhanced eth_getLogs with timestamp range va…
…lidation and new error handling (#3431) to release/0.64 (#3434) feat: enhanced eth_getLogs with timestamp range validation and new error handling (#3431) * fix: returned empty array for eth_getLogs if toBlock is not found * feat: added new predefined error TIMESTAMP_RANGE_TOO_LARGE * fix: added validation to ensure the timestamp range between fromBlock and toBlock is valid * chore: added comments to clarify the logic * test: added unit test * test: added acceptance test * chore: updated a unique JsonRPC error code for TIMESTAMP_RANGE_TOO_LARGE * chore: updated 7 timestamp validation * chore: explained the logic behind MISSING_FROM_BLOCK_PARAM error * feat: added a dedicated validateBlockRange for eth_newFilter * fix: threw INVALID_BLOCK_RANGE if fromBlockNum is greater than toBlockNum --------- Signed-off-by: Logan Nguyen <logan.nguyen@swirldslabs.com>
- Loading branch information
1 parent
214f1ef
commit 7c41c62
Showing
7 changed files
with
188 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters