Skip to content
This repository has been archived by the owner on Jan 31, 2024. It is now read-only.

Commit

Permalink
fix code duplication in node
Browse files Browse the repository at this point in the history
  • Loading branch information
ozgunozerk committed Sep 30, 2022
1 parent 44cdbbc commit 821458a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src-tauri/src/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ async fn create_full_client<CS: ChainSpec + 'static>(
let workaround_file = config_dir.join("network").join("gemini_1b_workaround");
if !workaround_file.exists() {
let _ = std::fs::write(workaround_file, &[]);
let _ = std::fs::remove_file(config_dir.join("network").join("secret_ed25519"));
let _ = std::fs::remove_file(config_dir.join(DEFAULT_NETWORK_CONFIG_PATH).join(NODE_KEY_ED25519_FILE));
return Err(anyhow!(
"Applied workaround for upgrade from gemini-1b-2022-jun-08, \
please restart this node"
Expand Down

0 comments on commit 821458a

Please sign in to comment.