-
Notifications
You must be signed in to change notification settings - Fork 8
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
eth JSON-RPC #22
Merged
Merged
eth JSON-RPC #22
Conversation
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
i-norden
force-pushed
the
eth_json_rpc
branch
from
October 28, 2020 13:55
d78065e
to
1d4abcb
Compare
3 tasks
…hich is still TODO because testing its current implementation requires complete state (e.g. like eth_call test) so- ideally- will first refactor it to use state diff 2ndary indexes rather than proceeding through regular ethdb interface)
…y indexes instead of operating through ethdb where we have to iterate down trie from root to leaf (multiple db lookups) to access account info
i-norden
force-pushed
the
eth_json_rpc
branch
from
October 30, 2020 05:35
00c9940
to
a8bc02a
Compare
i-norden
force-pushed
the
eth_json_rpc
branch
from
October 30, 2020 05:44
a8bc02a
to
b664aee
Compare
i-norden
force-pushed
the
eth_json_rpc
branch
from
October 30, 2020 17:06
763f86b
to
b208281
Compare
Unit tests finished for everything except Have also optimized endpoints that read from leafs e.g. |
I think optimizing and testing |
… a range; update backend to use these to retrieve state and storage leafs in single (albeit complex) SELECT query
4 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
For #2 and #9
Adds remaining currently supportable
eth_*
endpoints:eth_getBalance
eth_getStorageAt
eth_getCode
eth_getProof
eth_getHeaderByHash
eth_getTransactionCount
eth_getBlockTransactionCountByHash
eth_getBlockTransactionCountByNumber
eth_getTransactionByBlockHashAndIndex
eth_getTransactionByBlockNumberAndIndex
eth_getRawTransactionByBlockHashAndIndex
eth_getRawTransactionByBlockNumberAndIndex
eth_getRawTransactionByHash
eth_getTransactionReceipt
eth_getUncleCountByBlockHash
eth_getUncleCountByBlockNumber
eth_getUncleByBlockHashAndIndex
eth_getUncleByBlockNumberAndIndex
Still a WIP
TODO:
Unit tests
Cache miss forwarding for the new endpoints