1
1
//! Service and ServiceFactory implementation. Specialized wrapper over substrate service.
2
2
3
- use fp_consensus:: { ensure_log , FindLogError } ;
3
+ use fp_consensus:: { FindLogError , ensure_log } ;
4
4
use fp_rpc:: EthereumRuntimeRPCApi ;
5
- use futures:: { channel:: mpsc, future, FutureExt } ;
6
- use node_subtensor_runtime:: { opaque :: Block , RuntimeApi , TransactionConverter } ;
5
+ use futures:: { FutureExt , channel:: mpsc, future} ;
6
+ use node_subtensor_runtime:: { RuntimeApi , TransactionConverter , opaque :: Block } ;
7
7
use sc_client_api:: { Backend as BackendT , BlockBackend } ;
8
8
use sc_consensus:: {
9
9
BasicQueue , BlockCheckParams , BlockImport , BlockImportParams , BoxBlockImport , ImportResult ,
10
10
} ;
11
11
use sc_consensus_grandpa:: BlockNumberOps ;
12
12
use sc_consensus_slots:: BackoffAuthoringOnFinalizedHeadLagging ;
13
13
use sc_network_sync:: strategy:: warp:: { WarpSyncConfig , WarpSyncProvider } ;
14
- use sc_service:: { error:: Error as ServiceError , Configuration , PartialComponents , TaskManager } ;
15
- use sc_telemetry:: { log , Telemetry , TelemetryHandle , TelemetryWorker } ;
14
+ use sc_service:: { Configuration , PartialComponents , TaskManager , error:: Error as ServiceError } ;
15
+ use sc_telemetry:: { Telemetry , TelemetryHandle , TelemetryWorker , log } ;
16
16
use sc_transaction_pool:: FullPool ;
17
17
use sc_transaction_pool_api:: OffchainTransactionPoolFactory ;
18
18
use sp_api:: ProvideRuntimeApi ;
@@ -27,9 +27,9 @@ use substrate_prometheus_endpoint::Registry;
27
27
use crate :: cli:: Sealing ;
28
28
use crate :: client:: { FullBackend , FullClient , HostFunctions , RuntimeExecutor } ;
29
29
use crate :: ethereum:: {
30
- db_config_dir , new_frontier_partial , spawn_frontier_tasks , BackendType , EthConfiguration ,
31
- FrontierBackend , FrontierBlockImport , FrontierPartialComponents , StorageOverride ,
32
- StorageOverrideHandler ,
30
+ BackendType , EthConfiguration , FrontierBackend , FrontierBlockImport , FrontierPartialComponents ,
31
+ StorageOverride , StorageOverrideHandler , db_config_dir , new_frontier_partial ,
32
+ spawn_frontier_tasks ,
33
33
} ;
34
34
35
35
/// The minimum period of blocks on which justifications will be
0 commit comments