@@ -25,9 +25,7 @@ use std::{sync::Arc, time::Duration};
25
25
use substrate_prometheus_endpoint:: Registry ;
26
26
27
27
// Runtime
28
- use node_subtensor_runtime:: {
29
- opaque:: Block , RuntimeApi , TransactionConverter ,
30
- } ;
28
+ use node_subtensor_runtime:: { opaque:: Block , RuntimeApi , TransactionConverter } ;
31
29
32
30
/// The minimum period of blocks on which justifications will be
33
31
/// imported and generated.
@@ -314,9 +312,7 @@ where
314
312
let metrics = NB :: register_notification_metrics ( maybe_registry) ;
315
313
316
314
let grandpa_protocol_name = sc_consensus_grandpa:: protocol_standard_name (
317
- & client
318
- . block_hash ( 0u32 . into ( ) ) ?
319
- . expect ( "Genesis block exists; qed" ) ,
315
+ & client. block_hash ( 0u32 ) ?. expect ( "Genesis block exists; qed" ) ,
320
316
& config. chain_spec ,
321
317
) ;
322
318
@@ -379,7 +375,7 @@ where
379
375
let force_authoring = config. force_authoring ;
380
376
let backoff_authoring_blocks =
381
377
Some ( BackoffAuthoringOnFinalizedHeadLagging :: < NumberFor < Block > > {
382
- unfinalized_slack : 6u32 . into ( ) ,
378
+ unfinalized_slack : 6u32 ,
383
379
..Default :: default ( )
384
380
} ) ;
385
381
let name = config. network . node_name . clone ( ) ;
0 commit comments