-
Notifications
You must be signed in to change notification settings - Fork 11
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
[TASK] Add rpc api for is_known_root method #325
Comments
This Like a two part operation here. Runtime API: protocol-substrate/pallets/mt/rpc/runtime-api/src/lib.rs Lines 5 to 10 in f0c637d
And then you will need to implement that Runtime API in the protocol-substrate/standalone/runtime/src/lib.rs Lines 1743 to 1752 in f0c637d
RPC: protocol-substrate/pallets/mt/rpc/src/lib.rs Lines 32 to 51 in f0c637d
Then you just implement it inside the RPC
protocol-substrate/pallets/mt/rpc/src/lib.rs Lines 75 to 94 in f0c637d
And that's it actually. |
Summary
Add RPC api to validate if the given root is a known root, this will be used by the relayer to validate leaves before caching.
https://github.com/webb-tools/protocol-substrate/blob/main/pallets/mt/src/lib.rs#L492-#L509
The text was updated successfully, but these errors were encountered: