-
Notifications
You must be signed in to change notification settings - Fork 311
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 an RPC endpoint for DataCommitment #625
Add an RPC endpoint for DataCommitment #625
Conversation
Co-authored-by: John Adler <[email protected]>
Co-authored-by: John Adler <[email protected]>
Co-authored-by: John Adler <[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! great work 👍 left two minor optional comments.
@evan-forbes @adlerjohn What should be the response for an empty block set ? |
yeah, we should definitely try to return an error in that case, either using a client side check or via the server. but this is optional imho, as we can add this check when implementing the relayer |
@evan-forbes added the sanity check. If it looks good, we can merge :D |
need to move constant to the consts package
ahh I see, nice! |
* init adding DataCommitment rpc * updates data commitment json response name * fix import * Update rpc/client/interface.go Co-authored-by: John Adler <[email protected]> * Update rpc/core/blocks.go Co-authored-by: John Adler <[email protected]> * Update rpc/core/blocks.go Co-authored-by: John Adler <[email protected]> * lint * adds test for data commitment (still not working) * fixes data commitment creation * fixes data commitment test * adds data commitment RPC test * update comment * updates openapi specs * add blocks sanity check for data commitment * rename blockByQuery to heightsByQuery to reflect more what the function is doing * moves DataCommitmentBlocksLimit to consts * adds tests for data commitment limits Co-authored-by: John Adler <[email protected]>
* init adding DataCommitment rpc * updates data commitment json response name * fix import * Update rpc/client/interface.go Co-authored-by: John Adler <[email protected]> * Update rpc/core/blocks.go Co-authored-by: John Adler <[email protected]> * Update rpc/core/blocks.go Co-authored-by: John Adler <[email protected]> * lint * adds test for data commitment (still not working) * fixes data commitment creation * fixes data commitment test * adds data commitment RPC test * update comment * updates openapi specs * add blocks sanity check for data commitment * rename blockByQuery to heightsByQuery to reflect more what the function is doing * moves DataCommitmentBlocksLimit to consts * adds tests for data commitment limits Co-authored-by: John Adler <[email protected]> run make mockery patch compute shares for pkg files finish remaining rpc refactor
* init adding DataCommitment rpc * updates data commitment json response name * fix import * Update rpc/client/interface.go Co-authored-by: John Adler <[email protected]> * Update rpc/core/blocks.go Co-authored-by: John Adler <[email protected]> * Update rpc/core/blocks.go Co-authored-by: John Adler <[email protected]> * lint * adds test for data commitment (still not working) * fixes data commitment creation * fixes data commitment test * adds data commitment RPC test * update comment * updates openapi specs * add blocks sanity check for data commitment * rename blockByQuery to heightsByQuery to reflect more what the function is doing * moves DataCommitmentBlocksLimit to consts * adds tests for data commitment limits Co-authored-by: John Adler <[email protected]> run make mockery patch compute shares for pkg files finish remaining rpc refactor
* init adding DataCommitment rpc * updates data commitment json response name * fix import * Update rpc/client/interface.go Co-authored-by: John Adler <[email protected]> * Update rpc/core/blocks.go Co-authored-by: John Adler <[email protected]> * Update rpc/core/blocks.go Co-authored-by: John Adler <[email protected]> * lint * adds test for data commitment (still not working) * fixes data commitment creation * fixes data commitment test * adds data commitment RPC test * update comment * updates openapi specs * add blocks sanity check for data commitment * rename blockByQuery to heightsByQuery to reflect more what the function is doing * moves DataCommitmentBlocksLimit to consts * adds tests for data commitment limits Co-authored-by: John Adler <[email protected]> run make mockery patch compute shares for pkg files finish remaining rpc refactor
* init adding DataCommitment rpc * updates data commitment json response name * fix import * Update rpc/client/interface.go Co-authored-by: John Adler <[email protected]> * Update rpc/core/blocks.go Co-authored-by: John Adler <[email protected]> * Update rpc/core/blocks.go Co-authored-by: John Adler <[email protected]> * lint * adds test for data commitment (still not working) * fixes data commitment creation * fixes data commitment test * adds data commitment RPC test * update comment * updates openapi specs * add blocks sanity check for data commitment * rename blockByQuery to heightsByQuery to reflect more what the function is doing * moves DataCommitmentBlocksLimit to consts * adds tests for data commitment limits Co-authored-by: John Adler <[email protected]> run make mockery patch compute shares for pkg files finish remaining rpc refactor
Description
Adds
DataCommitment
RPC endpoint to be used to calculate the merkle root of a set of data roots.Closes: #620