buzzer.network (OP)
Copper Member
Newbie
Offline
Activity: 26
Merit: 0
|
|
February 13, 2021, 01:08:33 PM |
|
Hi, there! How to check your node state:1. Network connectivityRequest: curl --data-binary '{"jsonrpc":"1.0","id":"curltext","method":"getpeerinfo","params":[]}' -i -H 'content-type: text/plain' http://127.0.0.1:8080 Output should contains some entries: { "id": "c4c847e591b381a7e6a74acd429364e6258151ad", "endpoint": "45.79.183.117:31415", "status": "ACTIVE", "time": 1612433346332993, "outbound": true, "latency": 67462, "roles": "FULLNODE|MINER", "address": "52Y2LKN1WkhFBN7g1ixu7177XWKdQGhdZHQKBTc7usMtkUWHNz", "in_queue": 2, "out_queue": 0, "pending_queue": 0, "received_count": 1377019, "received_bytes": 757301670, "sent_count": 639878, "sent_bytes": 279314315, "chains": [ { "dapp": "none", "height": 647916, "chain": "0000000000000000000000000000000000000000000000000000000000000001", "block": "ca58377d576462d3a898a4d6a2da2db81cfd2ccdf59912ad578dfac2d8cb49b8" }, { "dapp": "buzzer", "height": 638103, "chain": "51feaabb54f42f16a5878ed3545762880a5f2d26409100438b1aa080d1a70825", "block": "22db931028e170d8ea5db4a57f89213b9d24cebae5d967e8a7b8219acd51d004" }, { "dapp": "cubix", "height": 638216, "chain": "b778c9558aa0f42523b0bf956c6a4ff6035282ec3d8e87bb100f2375ceba3950", "block": "a8ff755a29ea403f3b1de4dcbf480ceacbfe6683f6fa65acf36e8f7920fbd733" }, { "dapp": "buzzer", "height": 642821, "chain": "3efcdc1414ec5ac42093755978eeed4c1068dbfa134716f991b382a24920ad87", "block": "7bd5d4da82f13e3daefec95fdaccc52105e24eb86956e8d8712f0e4e84deb7bb" }, { "dapp": "cubix", "height": 642029, "chain": "9e452dd7f3a2d22848e547ea93b7f73e165b6a6a2a5c9b44e298e90623fc2d9a", "block": "6ee72ac0d237026cd9184d91df35201146acb74b630d086974baac7e2f901f85" } ] },
2. StateRequest: curl --data-binary '{"jsonrpc":"1.0","id":"curltext","method":"getstate","params":[]}' -i -H 'content-type: text/plain' http://127.0.0.1:8080 Output should contains: { "result": { "state": { "clients": 0, "peers_count": 9, "in_queue": 484, "out_queue": 0, "pending_queue": 0, "received_count": 21926, "received_bytes": 14860474, "sent_count": 23303, "sent_bytes": 11196023, "chains": [ { "dapp": "none", "height": 648357, "chain": "0000000000000000000000000000000000000000000000000000000000000001", "block": "1379ca8afcda5f4faf47e44db06909565c91ac7d0b38a5cf0d2d6f06084de933", "time": 1613221241, "state": "SYNCHRONIZED" }, { "dapp": "buzzer", "height": 638297, "chain": "51feaabb54f42f16a5878ed3545762880a5f2d26409100438b1aa080d1a70825", "block": "5e70ee93be167b6afec88c001e7f1cd6f766c2abea9382028fcabe0ac3a13b15", "time": 1613221241, "state": "SYNCHRONIZED" }, { "dapp": "cubix", "height": 638410, "chain": "b778c9558aa0f42523b0bf956c6a4ff6035282ec3d8e87bb100f2375ceba3950", "block": "66b2636fb1b8a87a0bc28830f603946dbe315f6492b8af0c208aff7dc6279c4c", "time": 1613221241, "state": "SYNCHRONIZED" }, { "dapp": "buzzer", "height": 643020, "chain": "3efcdc1414ec5ac42093755978eeed4c1068dbfa134716f991b382a24920ad87", "block": "85130b3a42558da954959131c2ba82cd79786990d7fb0f89b0a70b31b7ad7bf1", "time": 1613221241, "state": "SYNCHRONIZING", "synchronization": { "type": "PARTIAL" } }, { "dapp": "cubix", "height": 642230, "chain": "9e452dd7f3a2d22848e547ea93b7f73e165b6a6a2a5c9b44e298e90623fc2d9a", "block": "21eac2822ab8e1697f1ceb4c58aed007c087fd48998e8391bfdce4961f065179", "time": 1613221241, "state": "SYNCHRONIZED" } ] } }, }
Every shard hast its own state and synchronization status: "state": "SYNCHRONIZING", "synchronization": { "type": "PARTIAL" }
"state" can be: SYNCHRONIZED, SYNCHRONIZING, INDEXING "synchronization" can hold the following information: - type: FULL, PARTIAL
- remains: in case of FULL synchronization indicates how much blocks remains to download and start indexing
|