From efe32f370a6169e55d415260c246305dc460bbbc Mon Sep 17 00:00:00 2001
From: Pierre Krieger <pierre.krieger1708@gmail.com>
Date: Tue, 27 Aug 2019 15:07:26 +0200
Subject: [PATCH] Minor tweak to requirements of AbstractService (#3493)

---
 substrate/core/service/src/lib.rs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/substrate/core/service/src/lib.rs b/substrate/core/service/src/lib.rs
index 363ad9cfdad..1362e86c214 100644
--- a/substrate/core/service/src/lib.rs
+++ b/substrate/core/service/src/lib.rs
@@ -454,7 +454,7 @@ pub trait AbstractService: 'static + Future<Item = (), Error = Error> +
 	/// Configuration struct of the service.
 	type Config;
 	/// Chain selection algorithm.
-	type SelectChain;
+	type SelectChain: consensus_common::SelectChain<Self::Block>;
 	/// API of the transaction pool.
 	type TransactionPoolApi: ChainApi<Block = Self::Block>;
 	/// Network specialization.
@@ -524,7 +524,7 @@ where TCfg: 'static + Send,
 	TBackend: 'static + client::backend::Backend<TBl, Blake2Hasher>,
 	TExec: 'static + client::CallExecutor<TBl, Blake2Hasher> + Send + Sync + Clone,
 	TRtApi: 'static + Send + Sync,
-	TSc: 'static + Clone + Send,
+	TSc: consensus_common::SelectChain<TBl> + 'static + Clone + Send,
 	TExPoolApi: 'static + ChainApi<Block = TBl>,
 	TOc: 'static + Send + Sync,
 	TNetSpec: NetworkSpecialization<TBl>,
-- 
GitLab