-
Notifications
You must be signed in to change notification settings - Fork 78
[ETCM-468] add JSON-RPC method eth-getProof #869
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
Conversation
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.
PR's looking good!
But if I would upgrade something - maybe I'd upgrade the testing
- add at least one failed scenario - to be sure that error matches an expected one (3 error cases were defined)
- maybe test the route itself, mocking the logic - in order to validate
jsonit gives
src/test/scala/io/iohk/ethereum/jsonrpc/EthProofServiceSpec.scala
Outdated
Show resolved
Hide resolved
|
Would it make sense to have the happy path merged into dev and work on the rest in a separate PR? |
src/test/scala/io/iohk/ethereum/mpt/MerklePatriciaTrieSuite.scala
Outdated
Show resolved
Hide resolved
I have added sth like that in: dfd4ec3
Each we could use more tests. Let's add it as separate PR. WDYT? |
src/test/scala/io/iohk/ethereum/jsonrpc/EthProofServiceSpec.scala
Outdated
Show resolved
Hide resolved
src/main/scala/io/iohk/ethereum/jsonrpc/EthJsonMethodsImplicits.scala
Outdated
Show resolved
Hide resolved
src/test/scala/io/iohk/ethereum/jsonrpc/EthProofServiceSpec.scala
Outdated
Show resolved
Hide resolved
src/test/scala/io/iohk/ethereum/mpt/MerklePatriciaTrieSuite.scala
Outdated
Show resolved
Hide resolved
|
@AnastasiiaL @bsuieric would it be possible to bring this pr to a mergeable state and get it into dev? it's already large, further work can happen in separate PRs. WDYT? |
the PR is ready to be merged, waiting for approval |
|
How can I approve the PR? |
|
done |
…], skeleton for methods getStorageProof, getAccountProof
Signed-off-by: Piotr Paradziński <[email protected]>
Signed-off-by: Piotr Paradziński <[email protected]>
Signed-off-by: Piotr Paradziński <[email protected]>
Signed-off-by: Piotr Paradziński <[email protected]>
Signed-off-by: Piotr Paradziński <[email protected]>
…orage proof (real tests for proof are on MPT) Signed-off-by: Piotr Paradziński <[email protected]>
Signed-off-by: Piotr Paradziński <[email protected]>
Signed-off-by: Piotr Paradziński <[email protected]>
Signed-off-by: Piotr Paradziński <[email protected]>
Signed-off-by: Piotr Paradziński <[email protected]>
Signed-off-by: Piotr Paradziński <[email protected]>
Signed-off-by: Piotr Paradziński <[email protected]>
Signed-off-by: Piotr Paradziński <[email protected]>
… request is handled by refactor Signed-off-by: Piotr Paradziński <[email protected]>
Signed-off-by: Piotr Paradziński <[email protected]>
Signed-off-by: Piotr Paradziński <[email protected]>
Signed-off-by: Piotr Paradziński <[email protected]>
Signed-off-by: Piotr Paradziński <[email protected]>
Signed-off-by: Piotr Paradziński <[email protected]>
bb80baa to
0b66389
Compare
Signed-off-by: Piotr Paradziński <[email protected]>
Signed-off-by: Piotr Paradziński <[email protected]>
[ETCM-468] add eth_getProof JSON-RPC endpoint (without non-membership proofs)
Description
Add eth_getProof JSON-RPC method. EIP-1186
Proposed Solution
Uses getProof implemented in #857.
Testing