1
1
//! Service and ServiceFactory implementation. Specialized wrapper over substrate service.
2
2
3
3
use crate :: cli:: Sealing ;
4
- use crate :: client:: { FullBackend , FullClient , RuntimeApiCollection } ;
4
+ use crate :: client:: { FullBackend , FullClient } ;
5
5
use crate :: ethereum:: {
6
6
db_config_dir, new_frontier_partial, spawn_frontier_tasks, BackendType , EthConfiguration ,
7
7
FrontierBackend , FrontierBlockImport , FrontierPartialComponents , StorageOverride ,
@@ -12,23 +12,21 @@ use sc_client_api::{Backend as BackendT, BlockBackend};
12
12
use sc_consensus:: { BasicQueue , BoxBlockImport } ;
13
13
use sc_consensus_grandpa:: BlockNumberOps ;
14
14
use sc_consensus_slots:: BackoffAuthoringOnFinalizedHeadLagging ;
15
- use sc_executor:: HostFunctions as HostFunctionsT ;
16
15
use sc_network_sync:: strategy:: warp:: { WarpSyncConfig , WarpSyncProvider } ;
17
16
use sc_service:: { error:: Error as ServiceError , Configuration , PartialComponents , TaskManager } ;
18
17
use sc_telemetry:: { log, Telemetry , TelemetryHandle , TelemetryWorker } ;
19
18
use sc_transaction_pool:: FullPool ;
20
19
use sc_transaction_pool_api:: OffchainTransactionPoolFactory ;
21
- use sp_api:: ConstructRuntimeApi ;
22
- use sp_consensus_aura:: sr25519:: { AuthorityId as AuraId , AuthorityPair as AuraPair } ;
23
- use sp_core:: { H256 , U256 } ;
20
+ use sp_consensus_aura:: sr25519:: AuthorityPair as AuraPair ;
21
+ use sp_core:: U256 ;
24
22
use sp_runtime:: traits:: { Block as BlockT , NumberFor } ;
25
23
use std:: { cell:: RefCell , path:: Path } ;
26
24
use std:: { sync:: Arc , time:: Duration } ;
27
25
use substrate_prometheus_endpoint:: Registry ;
28
26
29
27
// Runtime
30
28
use node_subtensor_runtime:: {
31
- opaque:: Block , AccountId , Balance , Nonce , RuntimeApi , TransactionConverter ,
29
+ opaque:: Block , RuntimeApi , TransactionConverter ,
32
30
} ;
33
31
34
32
/// The minimum period of blocks on which justifications will be
0 commit comments