From 8a5a6608f361c0d8aa720f71ec3ce4f6230497b8 Mon Sep 17 00:00:00 2001 From: _den <_den@outlook.com> Date: Sat, 12 Mar 2022 16:39:38 +1000 Subject: [PATCH] added command to view sync height --- bor/bor.md | 5 +++++ bsc/bsc.md | 5 +++++ geth/geth.md | 4 ++++ nethermind/nethermind.md | 5 +++++ 4 files changed, 19 insertions(+) diff --git a/bor/bor.md b/bor/bor.md index 26d8a15..9cdc339 100644 --- a/bor/bor.md +++ b/bor/bor.md @@ -20,6 +20,11 @@ docker-compose build docker-compose up -d rabbitmq heimdalld heimdallr bor ``` +To see the sync status run: +`curl -X POST --data '{"jsonrpc": "2.0", "id": 1, "method": "eth_syncing"}' -H 'Content-Type: application/json' -s https://${DOMAIN}/bor-http/` +* `currentBlock` - your node current height; +* `highestBlock` - network height. + ## Upgrade Periodically check for new versions. if there is a release, then you need to update the tag (`BOR_TAG`) in the environment file. ```bash diff --git a/bsc/bsc.md b/bsc/bsc.md index a17ce1c..28304ce 100644 --- a/bsc/bsc.md +++ b/bsc/bsc.md @@ -20,6 +20,11 @@ docker-compose build docker-compose up -d bsc ``` +To see the sync status run: +`curl -X POST --data '{"jsonrpc": "2.0", "id": 1, "method": "eth_syncing"}' -H 'Content-Type: application/json' -s https://${DOMAIN}/bsc-http/` +* `currentBlock` - your node current height; +* `highestBlock` - network height. + ## Upgrade Periodically check for new versions. If there is a release, then you need to update the tag (`BSC_TAG`) in the environment file. ```bash diff --git a/geth/geth.md b/geth/geth.md index 036e0c8..876e35e 100644 --- a/geth/geth.md +++ b/geth/geth.md @@ -14,6 +14,10 @@ Start node (If you do not use traefik, specify the compose file with the `-f doc ```bash docker-compose up -d geth ``` +To see the sync status run: +`curl -X POST --data '{"jsonrpc": "2.0", "id": 1, "method": "eth_syncing"}' -H 'Content-Type: application/json' -s https://${DOMAIN}/geth-http/` +* `currentBlock` - your node current height; +* `highestBlock` - network height. ## Upgrade ```bash diff --git a/nethermind/nethermind.md b/nethermind/nethermind.md index 5098dfb..f548057 100644 --- a/nethermind/nethermind.md +++ b/nethermind/nethermind.md @@ -15,6 +15,11 @@ Start node (If you do not use traefik, specify the compose file with the `-f doc docker-compose up -d ``` +To see the sync status run: +`curl -X POST --data '{"jsonrpc": "2.0", "id": 1, "method": "eth_syncing"}' -H 'Content-Type: application/json' -s https://${DOMAIN}/nm-http/` +* `currentBlock` - your node current height; +* `highestBlock` - network height. + ## Upgrade ```bash docker-compose pull