@@ -25,22 +25,17 @@ use crate::{
25
25
start_shibuya_node, start_shiden_node,
26
26
} ,
27
27
} ;
28
- use astar_primitives:: * ;
29
- use cumulus_client_cli:: generate_genesis_block;
30
28
use cumulus_primitives_core:: ParaId ;
31
29
use log:: { error, info} ;
32
- use parity_scale_codec:: Encode ;
33
30
use sc_cli:: {
34
31
ChainSpec , CliConfiguration , DefaultConfigurationValues , ImportParams , KeystoreParams ,
35
- NetworkParams , Result , RuntimeVersion , SharedParams , SubstrateCli ,
32
+ NetworkParams , Result , SharedParams , SubstrateCli ,
36
33
} ;
37
34
use sc_service:: {
38
35
config:: { BasePath , PrometheusConfig } ,
39
36
PartialComponents ,
40
37
} ;
41
- use sp_core:: hexdisplay:: HexDisplay ;
42
38
use sp_runtime:: traits:: AccountIdConversion ;
43
- use sp_runtime:: traits:: Block as BlockT ;
44
39
use std:: net:: SocketAddr ;
45
40
46
41
#[ cfg( feature = "runtime-benchmarks" ) ]
@@ -149,20 +144,6 @@ impl SubstrateCli for Cli {
149
144
}
150
145
}
151
146
152
- impl Cli {
153
- fn runtime_version ( chain_spec : & Box < dyn ChainSpec > ) -> & ' static RuntimeVersion {
154
- if chain_spec. is_dev ( ) {
155
- & local_runtime:: VERSION
156
- } else if chain_spec. is_astar ( ) {
157
- & astar_runtime:: VERSION
158
- } else if chain_spec. is_shiden ( ) {
159
- & shiden_runtime:: VERSION
160
- } else {
161
- & shibuya_runtime:: VERSION
162
- }
163
- }
164
- }
165
-
166
147
impl SubstrateCli for RelayChainCli {
167
148
fn impl_name ( ) -> String {
168
149
"Astar Collator" . into ( )
@@ -521,7 +502,9 @@ pub fn run() -> Result<()> {
521
502
cmd. run :: < shibuya_runtime:: Block , parachain:: HostFunctions > ( config)
522
503
} )
523
504
} else {
524
- runner. sync_run ( |config| cmd. run :: < Block , local:: HostFunctions > ( config) )
505
+ runner. sync_run ( |config| {
506
+ cmd. run :: < local_runtime:: Block , local:: HostFunctions > ( config)
507
+ } )
525
508
}
526
509
}
527
510
BenchmarkCmd :: Block ( cmd) => {
0 commit comments