avail
avail copied to clipboard
Added support for fetching grandpa justifications for arbitrary blocks
Pull Request type
- [x] Feature
Description
The support for storing block justifications is gated behind the grandpa-justifications
feature. This feature primarily provides two functionalities:
- A CLI option
--grandpa-justification-period
, allows users to set the block interval at which the node should store block justifications. - A
grandpa_blockJustification
RPC, enabling users to fetch the justification for a given block number.
Checklist
- [x] I have performed a self-review of my own code.
- [x] The tests pass successfully with
cargo test
. - [x] The code was formatted with
cargo fmt
. - [x] The code compiles with no new warnings with
cargo build --release
andcargo build --release --features runtime-benchmarks
. - [x] The code has no new warnings when using
cargo clippy
. - [x] If this change affects documented features or needs new documentation, I have created a PR with a documentation update.