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