-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improve & refactor evm_rpc methods for reuse (#41)
* add missing valid blocktags * test invalid/unsupported block tag * refactor ExtractBlockNumberFromEVMRPCRequest for reuse will need the validation and block number extraction for height-based routing. however, it will be in the critical path, so we need to not have the bit that makes an additional evm request. * add tests of cacheable param checks * support & handle routing always-latest methods some methods will always work if routed to a pruning cluster. do that! * track & encode "empty" block tag requests separately * refactor block tags to constants * refactor & rename NoHistoryMethods * refactor method param type checks to pure functions * add test coverage of public decode methods
- Loading branch information
1 parent
2f8fa7d
commit 13a027b
Showing
2 changed files
with
273 additions
and
43 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
Oops, something went wrong.