[][src]Function sc_finality_grandpa::setup_disabled_grandpa

pub fn setup_disabled_grandpa<Block: BlockT, Client, N>(
    client: Arc<Client>,
    inherent_data_providers: &InherentDataProviders,
    network: N
) -> Result<(), Error> where
    N: NetworkT<Block> + Send + Clone + 'static,
    Client: HeaderBackend<Block> + 'static, 

When GRANDPA is not initialized we still need to register the finality tracker inherent provider which might be expected by the runtime for block authoring. Additionally, we register a gossip message validator that discards all GRANDPA messages (otherwise, we end up banning nodes that send us a Neighbor message, since there is no registered gossip validator for the engine id defined in the message.)