-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #79 from EpicsDAO/ledger
add LEDGER_PATH in solv.config.json
- Loading branch information
Showing
10 changed files
with
56 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
'@epics-dao/solv': patch | ||
--- | ||
|
||
## added LEDGER_PATH in solv.config.json | ||
|
||
Update solv version | ||
|
||
```bash | ||
pnpm add -g @epics-dao/solv | ||
``` | ||
|
||
To set custom ledger path, add LEDGER_PATH in solv.config.json | ||
|
||
```~/solv.config.json | ||
{ | ||
"LEDGER_PATH": "path/to/ledger", | ||
.. | ||
} | ||
``` | ||
|
||
Default ledger path is `/mnt/ledger` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import { startupScriptPaths } from '@/config/config' | ||
import { readOrCreateDefaultConfig } from '@/lib/readOrCreateDefaultConfig' | ||
import { spawnSync } from 'child_process' | ||
|
||
export const monitorSolana = () => { | ||
const { ledger } = startupScriptPaths() | ||
const ledger = readOrCreateDefaultConfig().config.LEDGER_PATH | ||
const cmd = `solana-validator --ledger ${ledger} monitor` | ||
spawnSync(cmd, { shell: true, stdio: 'inherit' }) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 3 additions & 2 deletions
5
packages/solv/src/template/startupScripts/startMainnetValidatorScript.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
packages/solv/src/template/startupScripts/startRPCNodeScript.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
packages/solv/src/template/startupScripts/startTestnetValidatorScript.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters