Skip to content

Commit

Permalink
Update solana version and other minor fixes (project-serum#6)
Browse files Browse the repository at this point in the history
* Update Solana version, 1.4.9 is no longer supported

* Replace ssh address of origin repo with http address

* Force the snapshot to be fetched on startup

* Remove the comments from api.sh and mention the issue in the README
  • Loading branch information
Lcchy authored Jan 25, 2021
1 parent 2da9831 commit fdfee7d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,11 @@ Among other things, the above command will modify your new instance by
- increasing the file descriptor limit for processes managed by supervisor to 600000
- creating a `tmpfs` device for the accounts store mounted at `/mnt/accounts`

After running the `setup.yaml` script, a reboot is necessary to pick up various system configs. Post-reboot, supervisor
should start up the validator using the `sol/api.sh` script. The validator will be listening on port 8899 for rest
requests, so issuing a curl to the `/health` path will return the health status of the validator.
After running the `setup.yaml` script, a reboot is necessary to pick up various system configs. If it is the first time
that the validator starts, it is possible that it thinks that a local ledger is present when there is not: commenting out the
lines 64-66 of `deploy/api.sh` will prevent this. Post-reboot, supervisor should start up the validator using the
`sol/api.sh` script. The validator will be listening on port 8899 for rest requests, so issuing a curl to the `/health`
path will return the health status of the validator.
```
$ curl http://localhost:8899
```
Expand Down
2 changes: 1 addition & 1 deletion deploy/hosts.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
all:
vars:
validator_user: sol
solana_version: v1.4.9
solana_version: v1.4.24
run_validator: true
nginx_sites:
- validator.conf
Expand Down
2 changes: 1 addition & 1 deletion deploy/setup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@
tasks:
- name: update git
git:
repo: git@github.com:project-serum/validators.git
repo: https://github.com/project-serum/validators.git
dest: "~/{{ validator_user }}"
version: "{{ commit | default('HEAD')}}"

Expand Down

0 comments on commit fdfee7d

Please sign in to comment.