@@ -713,9 +713,9 @@ where
713
713
let backoff_authoring_blocks = {
714
714
let mut backoff = sc_consensus_slots:: BackoffAuthoringOnFinalizedHeadLagging :: default ( ) ;
715
715
716
- if config. chain_spec . is_rococo ( )
717
- || config. chain_spec . is_wococo ( )
718
- || config. chain_spec . is_versi ( )
716
+ if config. chain_spec . is_rococo ( ) ||
717
+ config. chain_spec . is_wococo ( ) ||
718
+ config. chain_spec . is_versi ( )
719
719
{
720
720
// it's a testnet that's in flux, finality has stalled sometimes due
721
721
// to operational issues and it's annoying to slow down block
@@ -727,10 +727,10 @@ where
727
727
} ;
728
728
729
729
// If not on a known test network, warn the user that BEEFY is still experimental.
730
- if enable_beefy
731
- && !config. chain_spec . is_rococo ( )
732
- && !config. chain_spec . is_wococo ( )
733
- && !config. chain_spec . is_versi ( )
730
+ if enable_beefy &&
731
+ !config. chain_spec . is_rococo ( ) &&
732
+ !config. chain_spec . is_wococo ( ) &&
733
+ !config. chain_spec . is_versi ( )
734
734
{
735
735
gum:: warn!( "BEEFY is still experimental, usage on a production network is discouraged." ) ;
736
736
}
@@ -1312,26 +1312,26 @@ pub fn new_chain_ops(
1312
1312
config. keystore = service:: config:: KeystoreConfig :: InMemory ;
1313
1313
1314
1314
#[ cfg( feature = "rococo-native" ) ]
1315
- if config. chain_spec . is_rococo ( )
1316
- || config. chain_spec . is_wococo ( )
1317
- || config. chain_spec . is_versi ( )
1315
+ if config. chain_spec . is_rococo ( ) ||
1316
+ config. chain_spec . is_wococo ( ) ||
1317
+ config. chain_spec . is_versi ( )
1318
1318
{
1319
- return chain_ops ! ( config, jaeger_agent, None ; rococo_runtime, RococoExecutorDispatch , Rococo ) ;
1319
+ return chain_ops ! ( config, jaeger_agent, None ; rococo_runtime, RococoExecutorDispatch , Rococo )
1320
1320
}
1321
1321
1322
1322
#[ cfg( feature = "kusama-native" ) ]
1323
1323
if config. chain_spec . is_kusama ( ) {
1324
- return chain_ops ! ( config, jaeger_agent, None ; kusama_runtime, KusamaExecutorDispatch , Kusama ) ;
1324
+ return chain_ops ! ( config, jaeger_agent, None ; kusama_runtime, KusamaExecutorDispatch , Kusama )
1325
1325
}
1326
1326
1327
1327
#[ cfg( feature = "westend-native" ) ]
1328
1328
if config. chain_spec . is_westend ( ) {
1329
- return chain_ops ! ( config, jaeger_agent, None ; westend_runtime, WestendExecutorDispatch , Westend ) ;
1329
+ return chain_ops ! ( config, jaeger_agent, None ; westend_runtime, WestendExecutorDispatch , Westend )
1330
1330
}
1331
1331
1332
1332
#[ cfg( feature = "polkadot-native" ) ]
1333
1333
{
1334
- return chain_ops ! ( config, jaeger_agent, None ; polkadot_runtime, PolkadotExecutorDispatch , Polkadot ) ;
1334
+ return chain_ops ! ( config, jaeger_agent, None ; polkadot_runtime, PolkadotExecutorDispatch , Polkadot )
1335
1335
}
1336
1336
1337
1337
#[ cfg( not( feature = "polkadot-native" ) ) ]
@@ -1366,9 +1366,9 @@ pub fn build_full(
1366
1366
hwbench : Option < sc_sysinfo:: HwBench > ,
1367
1367
) -> Result < NewFull < Client > , Error > {
1368
1368
#[ cfg( feature = "rococo-native" ) ]
1369
- if config. chain_spec . is_rococo ( )
1370
- || config. chain_spec . is_wococo ( )
1371
- || config. chain_spec . is_versi ( )
1369
+ if config. chain_spec . is_rococo ( ) ||
1370
+ config. chain_spec . is_wococo ( ) ||
1371
+ config. chain_spec . is_versi ( )
1372
1372
{
1373
1373
return new_full :: < rococo_runtime:: RuntimeApi , RococoExecutorDispatch , _ > (
1374
1374
config,
@@ -1384,7 +1384,7 @@ pub fn build_full(
1384
1384
malus_finality_delay,
1385
1385
hwbench,
1386
1386
)
1387
- . map ( |full| full. with_client ( Client :: Rococo ) ) ;
1387
+ . map ( |full| full. with_client ( Client :: Rococo ) )
1388
1388
}
1389
1389
1390
1390
#[ cfg( feature = "kusama-native" ) ]
@@ -1403,7 +1403,7 @@ pub fn build_full(
1403
1403
malus_finality_delay,
1404
1404
hwbench,
1405
1405
)
1406
- . map ( |full| full. with_client ( Client :: Kusama ) ) ;
1406
+ . map ( |full| full. with_client ( Client :: Kusama ) )
1407
1407
}
1408
1408
1409
1409
#[ cfg( feature = "westend-native" ) ]
@@ -1422,7 +1422,7 @@ pub fn build_full(
1422
1422
malus_finality_delay,
1423
1423
hwbench,
1424
1424
)
1425
- . map ( |full| full. with_client ( Client :: Westend ) ) ;
1425
+ . map ( |full| full. with_client ( Client :: Westend ) )
1426
1426
}
1427
1427
1428
1428
#[ cfg( feature = "polkadot-native" ) ]
@@ -1444,7 +1444,7 @@ pub fn build_full(
1444
1444
malus_finality_delay,
1445
1445
hwbench,
1446
1446
)
1447
- . map ( |full| full. with_client ( Client :: Polkadot ) ) ;
1447
+ . map ( |full| full. with_client ( Client :: Polkadot ) )
1448
1448
}
1449
1449
1450
1450
#[ cfg( not( feature = "polkadot-native" ) ) ]
@@ -1483,7 +1483,7 @@ pub fn revert_backend(
1483
1483
let revertible = blocks. min ( best_number - finalized) ;
1484
1484
1485
1485
if revertible == 0 {
1486
- return Ok ( ( ) ) ;
1486
+ return Ok ( ( ) )
1487
1487
}
1488
1488
1489
1489
let number = best_number - revertible;
0 commit comments