-
Notifications
You must be signed in to change notification settings - Fork 878
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
add get proof for bonsai #5919
add get proof for bonsai #5919
Conversation
Signed-off-by: Karim TAAM <[email protected]>
|
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.
LGTM
final Hash worldStateRoot, | ||
final Address accountAddress, | ||
final List<UInt256> accountStorageKeys) { | ||
return worldStateProof.getAccountProof(worldStateRoot, accountAddress, accountStorageKeys); |
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.
should we use this.worldStateRootHash instead? passing the state root makes sense for forest, but not really for bonsai.
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.
you right I modified the code, I moved the getProof to archive again with some modification. it will normally makes sense now . if you can review again
@@ -28,7 +28,6 @@ public void setup() throws Exception { | |||
} | |||
|
|||
public static Object[][] specs() { | |||
return findSpecFiles( | |||
new String[] {"eth"}, "getProof"); // getProof is not working with bonsai trie | |||
return findSpecFiles(new String[] {"eth"}); |
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.
👍
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.
LGTM. non-blocking question regarding arbitrary state root in bonsai. Otherwise 🚢
Signed-off-by: Karim TAAM <[email protected]>
Signed-off-by: Karim TAAM <[email protected]>
* add get proof for bonsai Signed-off-by: Karim TAAM <[email protected]> * fix review Signed-off-by: Karim TAAM <[email protected]> * remove logs Signed-off-by: Karim TAAM <[email protected]> --------- Signed-off-by: Karim TAAM <[email protected]> Signed-off-by: Justin Florentine <[email protected]>
* add get proof for bonsai Signed-off-by: Karim TAAM <[email protected]> * fix review Signed-off-by: Karim TAAM <[email protected]> * remove logs Signed-off-by: Karim TAAM <[email protected]> --------- Signed-off-by: Karim TAAM <[email protected]>
PR description
PR that adds getproof for Bonsai. With this implementation, we can serve the getproof for historical states and not just the head.
Fixed Issue(s)
fixes #5874