This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
Expose GRANDPA round state through RPC #4921
Labels
J0-enhancement
An additional feature request.
Z2-medium
Can be fixed by a coder with good Rust knowledge but little knowledge of the codebase.
We should be able to inspect the current GRANDPA round state externally, this is particularly useful in situations where finality is stalled (e.g. due to some voters being offline).
I propose we add an RPC method
grandpa_roundState
that returns something like:Currently this data is not exposed by the
finality-grandpa
crate, there's paritytech/finality-grandpa#55 which should be tackled as part of this issue as well.Regarding the addresses of validators that are missing votes it is a bit tricky. Ideally we'd like to expose the addresses of the stash account since these represent the main "identity" of a validator. But the client GRANDPA code only deals with session keys and it isn't trivial to fetch the associated stash keys.
cc @rphmeier
The text was updated successfully, but these errors were encountered: