From 27adb050d7694d7183c2a312c4c68b35e3cb8a8c Mon Sep 17 00:00:00 2001 From: POPPIN-FUMI Date: Fri, 25 Oct 2024 09:03:56 +0200 Subject: [PATCH] fix - solv auto update notification --- .changeset/witty-cows-sip.md | 5 +++++ packages/solv/src/cli/update/autoUpdate/index.ts | 4 +--- packages/solv/src/config/config.ts | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 .changeset/witty-cows-sip.md diff --git a/.changeset/witty-cows-sip.md b/.changeset/witty-cows-sip.md new file mode 100644 index 00000000..f93daa42 --- /dev/null +++ b/.changeset/witty-cows-sip.md @@ -0,0 +1,5 @@ +--- +'@epics-dao/solv': patch +--- + +fix - solv auto update notification diff --git a/packages/solv/src/cli/update/autoUpdate/index.ts b/packages/solv/src/cli/update/autoUpdate/index.ts index 2c2c6c6b..6f0f67f7 100644 --- a/packages/solv/src/cli/update/autoUpdate/index.ts +++ b/packages/solv/src/cli/update/autoUpdate/index.ts @@ -22,9 +22,7 @@ const autoUpdate = async (config: DefaultConfigType) => { const isMainnet = config.NETWORK === Network.MAINNET const { mainnetValidatorKey, testnetValidatorKey } = getAllKeyPaths() const validatorKey = isMainnet ? mainnetValidatorKey : testnetValidatorKey - const solanaVersion = isMainnet - ? CONFIG.MAINNET_SOLANA_VERSION - : CONFIG.TESTNET_SOLANA_VERSION + const solanaVersion = getSolvVersion() // Notify the user about the update let isUpdateRequired = isMainnet ? NODE_RESTART_REQUIRED_MAINNET diff --git a/packages/solv/src/config/config.ts b/packages/solv/src/config/config.ts index 3dfe3326..e57f0b38 100644 --- a/packages/solv/src/config/config.ts +++ b/packages/solv/src/config/config.ts @@ -54,7 +54,7 @@ export enum MAINNET_TYPES { // ⚠️ Please DO NOT forget to turn this to false if restart is not needed export const NODE_RESTART_REQUIRED_MAINNET = false -export const NODE_RESTART_REQUIRED_TESTNET = true +export const NODE_RESTART_REQUIRED_TESTNET = false export type CONFIG_TYPE = { ID: string