grandpa: fix --no-grandpa flag breaking block production (#3350)

This commit is contained in:
André Silva
2019-08-09 00:53:54 +01:00
committed by GitHub
parent a1a8c9829e
commit 8f3a68db25
2 changed files with 9 additions and 1 deletions
+8
View File
@@ -170,6 +170,14 @@ construct_service_factory! {
}
}
// regardless of whether grandpa is started or not, when
// authoring blocks we expect inherent data regarding what our
// last finalized block is, to be available.
grandpa::register_finality_tracker_inherent_data_provider(
service.client(),
&service.config().custom.inherent_data_providers,
)?;
Ok(service)
}
},