Skip to content

Commit

Permalink
Merge pull request #327 from EpicsDAO/feature
Browse files Browse the repository at this point in the history
fix - solv auto update notification
  • Loading branch information
POPPIN-FUMI authored Oct 25, 2024
2 parents dfacd9b + 27adb05 commit 29b9b95
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/witty-cows-sip.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@epics-dao/solv': patch
---

fix - solv auto update notification
4 changes: 1 addition & 3 deletions packages/solv/src/cli/update/autoUpdate/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/solv/src/config/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 29b9b95

Please sign in to comment.