Skip to content

Instantly share code, notes, and snippets.

@LeoHChen
Last active July 24, 2020 00:51
Show Gist options
  • Save LeoHChen/dfb413686774f55d91bec494b2a50222 to your computer and use it in GitHub Desktop.
Save LeoHChen/dfb413686774f55d91bec494b2a50222 to your computer and use it in GitHub Desktop.
check running version of your harmony node

check the installed version of the node binary

./node.sh -V

check the running version of the node

curl -s --request POST \
'http://127.0.0.1:9500/' \
--header 'Content-Type: application/json' \
--data-raw \
'{ "jsonrpc": "2.0", "method": "hmyv2_getNodeMetadata", "params": [], "id": 1}' | jq .result.version

if your running version is older

Just restart the node.sh

if you don't have jq

https://stedolan.github.io/jq/download/

for next release

We print out both installed and running version to the node.sh -V command in the next release.

The PR: harmony-one/harmony#3245

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment