You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Updated NymConfig trait making id always obligatory. Also added extra default method implementations
* Preventing init on mixnodes that were initialised before
* Quotes before mix id
* Preventing init on gateways that were initialised before
* Preventing init on native clients that were initialised before
* Preventing init on socks5 clients that were initialised before
let id = matches.value_of("id").unwrap();// required for now
135
+
136
+
ifConfig::default_config_file_path(id).exists(){
137
+
eprintln!("Client \"{}\" was already initialised before! If you wanted to upgrade your client to most recent version, try `upgrade` command instead!", id);
138
+
process::exit(1);
139
+
}
140
+
134
141
letmut config = Config::new(id);
142
+
135
143
letmut rng = OsRng;
136
144
137
145
// TODO: ideally that should be the last thing that's being done to config.
let id = matches.value_of("id").unwrap();// required for now
135
136
let provider_address = matches.value_of("provider").unwrap();
136
137
138
+
ifConfig::default_config_file_path(id).exists(){
139
+
eprintln!("Socks5 client \"{}\" was already initialised before! If you wanted to upgrade your client to most recent version, try `upgrade` command instead!", id);
eprintln!("Gateway \"{}\" was already initialised before! If you wanted to upgrade your gateway to most recent version, try `upgrade` command instead!", id);
eprintln!("Mixnode \"{}\" was already initialised before! If you wanted to upgrade your node to most recent version, try `upgrade` command instead!", id);
142
+
process::exit(1);
143
+
}
144
+
145
+
letmut config = Config::new(id);
138
146
config = override_config(config, matches);
139
147
let layer = choose_layer(matches, config.get_presence_directory_server()).await;
140
148
// TODO: I really don't like how we override config and are presumably done with it
0 commit comments