@@ -6,9 +6,9 @@ use std::path::PathBuf;
66use anyhow:: Result ;
77use exporter_service:: ExporterContext ;
88use futures:: FutureExt ;
9- use linera_client:: config:: { BlockExporterConfig , GenesisConfig } ;
9+ use linera_client:: config:: BlockExporterConfig ;
1010use linera_sdk:: views:: ViewError ;
11- use linera_service:: { storage:: StorageConfigNamespace , util } ;
11+ use linera_service:: storage:: StorageConfigNamespace ;
1212use linera_views:: { lru_caching:: StorageCacheConfig , store:: CommonStoreConfig } ;
1313
1414#[ allow( dead_code) ]
@@ -68,10 +68,6 @@ struct ExporterOptions {
6868 /// The maximal number of entries in the storage cache.
6969 #[ arg( long, default_value = "1000" ) ]
7070 max_cache_entries : usize ,
71-
72- /// Path to the file describing the initial user chains (aka genesis state)
73- #[ arg( long = "genesis" ) ]
74- genesis_config_path : PathBuf ,
7571}
7672
7773fn main ( ) -> Result < ( ) > {
@@ -108,8 +104,6 @@ impl ExporterOptions {
108104 }
109105 } ;
110106
111- let genesis_config: GenesisConfig = util:: read_json ( & self . genesis_config_path ) ?;
112-
113107 let future = async {
114108 let context =
115109 ExporterContext :: new ( config. id , config. service_config , config. destination_config ) ;
@@ -118,10 +112,7 @@ impl ExporterOptions {
118112 . add_common_config ( common_config)
119113 . await
120114 . unwrap ( ) ;
121- storage_config
122- . run_with_storage ( & genesis_config, None , context)
123- . boxed ( )
124- . await
115+ storage_config. run_with_storage ( None , context) . boxed ( ) . await
125116 } ;
126117
127118 let runtime = runtime_builder. enable_all ( ) . build ( ) ?;
0 commit comments