mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 11:41:02 +00:00
node, node-template: disable GRANDPA observer (#5011)
* node-template: disable grandpa observer * node: disable grandpa observer * node: add doc about grandpa-voter infallible task * grandpa: remove grandpa observer from public API * grandpa: ignore observer_enabled field in config
This commit is contained in:
@@ -96,7 +96,6 @@ mod voting_rule;
|
||||
pub use finality_proof::FinalityProofProvider;
|
||||
pub use justification::GrandpaJustification;
|
||||
pub use light_import::light_block_import;
|
||||
pub use observer::run_grandpa_observer;
|
||||
pub use voting_rule::{
|
||||
BeforeBestBlockBy, ThreeQuartersOfTheUnfinalizedChain, VotingRule, VotingRulesBuilder
|
||||
};
|
||||
@@ -551,7 +550,7 @@ pub fn run_grandpa_voter<B, E, Block: BlockT, N, RA, SC, VR, X>(
|
||||
Client<B, E, Block, RA>: AuxStore,
|
||||
{
|
||||
let GrandpaParams {
|
||||
config,
|
||||
mut config,
|
||||
link,
|
||||
network,
|
||||
inherent_data_providers,
|
||||
@@ -560,6 +559,12 @@ pub fn run_grandpa_voter<B, E, Block: BlockT, N, RA, SC, VR, X>(
|
||||
voting_rule,
|
||||
} = grandpa_params;
|
||||
|
||||
// NOTE: we have recently removed `run_grandpa_observer` from the public
|
||||
// API, I felt it is easier to just ignore this field rather than removing
|
||||
// it from the config temporarily. This should be removed after #5013 is
|
||||
// fixed and we re-add the observer to the public API.
|
||||
config.observer_enabled = false;
|
||||
|
||||
let LinkHalf {
|
||||
client,
|
||||
select_chain,
|
||||
|
||||
Reference in New Issue
Block a user