Skip to content

Commit

Permalink
fix solv update --config
Browse files Browse the repository at this point in the history
  • Loading branch information
POPPIN-FUMI committed Aug 9, 2024
1 parent cf5fc39 commit 4e9286d
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 8 deletions.
13 changes: 13 additions & 0 deletions .changeset/tender-waves-enjoy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
'@epics-dao/solv': patch
---

fix - solv update --config

You can now update the solv configuration file with the following command:

```bash
$ solv update --config
```

This will update the default Solana version.
10 changes: 6 additions & 4 deletions packages/solv/src/cli/update/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,12 @@ export const updateCommands = (solvConfig: ConfigParams) => {
TESTNET_SOLANA_VERSION: CONFIG.TESTNET_SOLANA_VERSION,
MAINNET_SOLANA_VERSION: CONFIG.MAINNET_SOLANA_VERSION,
})
updateJitoSolvConfig({
version: JITO_CONFIG.version,
tag: JITO_CONFIG.tag,
})
if (solvConfig.config.MAINNET_TYPE === MAINNET_TYPES.JITO_MEV) {
updateJitoSolvConfig({
version: JITO_CONFIG.version,
tag: JITO_CONFIG.tag,
})
}
console.log(
chalk.green(
'✔️ Updated Solv Config Default Solana Version\n\n You can now run `solv i` to install the latest version',
Expand Down
4 changes: 2 additions & 2 deletions packages/solv/src/config/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ export enum MAINNET_TYPES {
}

// ⚠️ Please DO NOT forget to turn this to false if restart is not needed
export const NODE_RESTART_REQUIRED_MAINNET = true
export const NODE_RESTART_REQUIRED_TESTNET = true
export const NODE_RESTART_REQUIRED_MAINNET = false
export const NODE_RESTART_REQUIRED_TESTNET = false

export type CONFIG_TYPE = {
ID: string
Expand Down
4 changes: 2 additions & 2 deletions packages/solv/src/config/jitConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ export interface JitoConfig {
}

export const JITO_CONFIG: JitoConfig = {
version: '1.18.20',
tag: 'v1.18.20-jito',
version: '1.18.22',
tag: 'v1.18.22-jito',
commissionBps: 700,
relayerUrl: 'http://amsterdam.mainnet.relayer.jito.wtf:8100',
blockEngineUrl: 'https://amsterdam.mainnet.block-engine.jito.wtf',
Expand Down

0 comments on commit 4e9286d

Please sign in to comment.