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

Commit

Permalink
Merge pull request #350 from subspace/fix-link
Browse files Browse the repository at this point in the history
replace discord invite with permanent forum link and remove code duplication in node.rs
  • Loading branch information
ozgunozerk authored Sep 30, 2022
2 parents fece3dd + 70246b9 commit 38f46c3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src-tauri/src/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ async fn create_full_client<CS: ChainSpec + 'static>(
set_default_ss58_version(&chain_spec);

sp_panic_handler::set(
"https://discord.gg/vhKF9w3x",
"https://forum.subspace.network/",
env!("SUBSTRATE_CLI_IMPL_VERSION"),
);

Expand Down Expand Up @@ -209,7 +209,11 @@ 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 38f46c3

Please sign in to comment.