-
Notifications
You must be signed in to change notification settings - Fork 539
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
Added support for fetching grandpa justifications for arbitrary blocks #658
base: main
Are you sure you want to change the base?
Conversation
cli.kate_rpc_enabled, | ||
cli.kate_rpc_metrics_enabled, | ||
cli, | ||
// cli.unsafe_da_sync, |
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.
remove commented code
kate_max_cells_size, | ||
kate_rpc_enabled, | ||
kate_rpc_metrics_enabled, | ||
kate_max_cells_size: cli.kate_max_cells_size, |
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.
It would be nice if we create a KateDeps
here, in the same way of node_rpc::BabeDeps
and node_rpc::GrandpaDeps
(see some lines avobe).
After deeper review I have a some of points/questions. 1. The max of
|
The justification that a full node generates in this feature is not linked to justifications that must be generated on the transition block (that's mandatory & all nodes should generate that). This configuration is only for nodes on which we've enabled this.
We won't be enabling this on validator nodes/ every RPC node for that matter. This is why we have put this feature behind a flag.
This feature does not guarantee the justification of the set interval. And yes, it's only for specific use cases. |
Pull Request type
Description
The support for storing block justifications is gated behind the
grandpa-justifications
feature. This feature primarily provides two functionalities:--grandpa-justification-period
, allows users to set the block interval at which the node should store block justifications.grandpa_blockJustification
RPC, enabling users to fetch the justification for a given block number.Checklist
cargo test
.cargo fmt
.cargo build --release
andcargo build --release --features runtime-benchmarks
.cargo clippy
.