@@ -222,14 +222,14 @@ pub fn new_full(config: Configuration) -> Result<TaskManager, ServiceError> {
222
222
) ;
223
223
}
224
224
225
- let finality_proof_provider = sc_consensus_grandpa:: FinalityProofProvider :: new_for_service (
226
- backend. clone ( ) ,
227
- Some ( grandpa_link. shared_authority_set ( ) . clone ( ) ) ,
228
- ) ;
229
- let rpc_backend = backend. clone ( ) ;
230
- let justification_stream = grandpa_link. justification_stream ( ) ;
231
- let shared_authority_set = grandpa_link. shared_authority_set ( ) . clone ( ) ;
232
- let shared_voter_state = SharedVoterState :: empty ( ) ;
225
+ let finality_proof_provider = sc_consensus_grandpa:: FinalityProofProvider :: new_for_service (
226
+ backend. clone ( ) ,
227
+ Some ( grandpa_link. shared_authority_set ( ) . clone ( ) ) ,
228
+ ) ;
229
+ let rpc_backend = backend. clone ( ) ;
230
+ let justification_stream = grandpa_link. justification_stream ( ) ;
231
+ let shared_authority_set = grandpa_link. shared_authority_set ( ) . clone ( ) ;
232
+ let shared_voter_state = SharedVoterState :: empty ( ) ;
233
233
234
234
let role = config. role . clone ( ) ;
235
235
let force_authoring = config. force_authoring ;
@@ -238,28 +238,29 @@ pub fn new_full(config: Configuration) -> Result<TaskManager, ServiceError> {
238
238
let enable_grandpa = !config. disable_grandpa ;
239
239
let prometheus_registry = config. prometheus_registry ( ) . cloned ( ) ;
240
240
241
- let rpc_extensions_builder = {
242
- let client = client. clone ( ) ;
243
- let pool = transaction_pool. clone ( ) ;
244
-
245
- Box :: new ( move |deny_unsafe, subscription_executor : sc_rpc:: SubscriptionTaskExecutor | {
246
- let deps =
247
- crate :: rpc:: FullDeps {
248
- client : client. clone ( ) ,
249
- pool : pool. clone ( ) ,
250
- deny_unsafe,
251
- grandpa : crate :: rpc:: GrandpaDeps {
252
- shared_voter_state : shared_voter_state. clone ( ) ,
253
- shared_authority_set : shared_authority_set. clone ( ) ,
254
- justification_stream : justification_stream. clone ( ) ,
255
- subscription_executor : subscription_executor. clone ( ) ,
256
- finality_provider : finality_proof_provider. clone ( ) ,
257
- } ,
258
- backend : rpc_backend. clone ( ) ,
259
- } ;
260
- crate :: rpc:: create_full ( deps) . map_err ( Into :: into)
261
- } )
262
- } ;
241
+ let rpc_extensions_builder = {
242
+ let client = client. clone ( ) ;
243
+ let pool = transaction_pool. clone ( ) ;
244
+
245
+ Box :: new (
246
+ move |deny_unsafe, subscription_executor : sc_rpc:: SubscriptionTaskExecutor | {
247
+ let deps = crate :: rpc:: FullDeps {
248
+ client : client. clone ( ) ,
249
+ pool : pool. clone ( ) ,
250
+ deny_unsafe,
251
+ grandpa : crate :: rpc:: GrandpaDeps {
252
+ shared_voter_state : shared_voter_state. clone ( ) ,
253
+ shared_authority_set : shared_authority_set. clone ( ) ,
254
+ justification_stream : justification_stream. clone ( ) ,
255
+ subscription_executor : subscription_executor. clone ( ) ,
256
+ finality_provider : finality_proof_provider. clone ( ) ,
257
+ } ,
258
+ backend : rpc_backend. clone ( ) ,
259
+ } ;
260
+ crate :: rpc:: create_full ( deps) . map_err ( Into :: into)
261
+ } ,
262
+ )
263
+ } ;
263
264
264
265
let _rpc_handlers = sc_service:: spawn_tasks ( sc_service:: SpawnTasksParams {
265
266
network : network. clone ( ) ,
0 commit comments