Remove set_finality_proof_request_builder (#3087)

* Remove set_finality_proof_request_builder

* Fix Babe

* Fix Grandpa

* Fix service doctests
This commit is contained in:
Pierre Krieger
2019-07-11 09:44:32 +02:00
committed by Bastian Köcher
parent 814b9056b3
commit efed2e3098
20 changed files with 80 additions and 87 deletions
+3 -4
View File
@@ -17,7 +17,7 @@ use futures::prelude::*;
use substrate_client::{self as client, LongestChain};
use primitives::{ed25519::Pair, Pair as PairT};
use inherents::InherentDataProviders;
use network::construct_simple_protocol;
use network::{config::DummyFinalityProofRequestBuilder, construct_simple_protocol};
use substrate_executor::native_executor_instance;
use substrate_service::construct_service_factory;
@@ -103,7 +103,6 @@ construct_service_factory! {
Box::new(client.clone()),
None,
None,
None,
client,
config.custom.inherent_data_providers.clone(),
).map_err(Into::into)
@@ -113,15 +112,15 @@ construct_service_factory! {
Self::Block,
>
{ |config: &mut FactoryFullConfiguration<Self>, client: Arc<LightClient<Self>>| {
let fprb = Box::new(DummyFinalityProofRequestBuilder::default()) as Box<_>;
import_queue::<_, _, Pair>(
SlotDuration::get_or_compute(&*client)?,
Box::new(client.clone()),
None,
None,
None,
client,
config.custom.inherent_data_providers.clone(),
).map_err(Into::into)
).map(|q| (q, fprb)).map_err(Into::into)
}
},
SelectChain = LongestChain<FullBackend<Self>, Self::Block>