From d7c45c19de9fe486847b433e33eed9d336c66b85 Mon Sep 17 00:00:00 2001 From: Arthur Ariel Sabintsev Date: Wed, 11 Dec 2024 16:04:19 -0500 Subject: [PATCH 1/2] Updated cheat sheat docs with an example after installation --- .../quickstart/full_node_cheatsheet.md | 100 ++++++++++++++++++ 1 file changed, 100 insertions(+) diff --git a/docusaurus/docs/operate/quickstart/full_node_cheatsheet.md b/docusaurus/docs/operate/quickstart/full_node_cheatsheet.md index 49d8beaf2..b4a69cfa4 100644 --- a/docusaurus/docs/operate/quickstart/full_node_cheatsheet.md +++ b/docusaurus/docs/operate/quickstart/full_node_cheatsheet.md @@ -75,6 +75,106 @@ When a chain upgrade is proposed and approved: 3. Cosmovisor will switch to the new binary 4. The node will restart automatically +#### Test that installation was successful +Query the latesrt block (i.e. check the node height) + +```bash +curl -X GET http://localhost:26657/block | jq +``` + +If you set it up correctly, you should see a response in this form: + +```json +{ + "jsonrpc": "2.0", + "id": -1, + "result": { + "block_id": { + "hash": "924904A2FB97327D2D91EB18225041B3DF82D1DBA5BA988AB79CD3EAC4A4960C", + "parts": { + "total": 1, + "hash": "90E8EDC6841779CF4BADE35CDB53AA1276153BD26690999C5E87EB0E49E91AC8" + } + }, + "block": { + "header": { + "version": { + "block": "11" + }, + "chain_id": "pocket-beta", + "height": "4971", + "time": "2024-11-25T21:33:54.785576474Z", + "last_block_id": { + "hash": "E1D9F26882FD28447063CC11D326331C4B7C4A6417B2B2E5E38C5484C6D98168", + "parts": { + "total": 1, + "hash": "85847883D9A34F345A2C3E610E1EC524B3C12F41DD2BDC49B36824D9A12EAB32" + } + }, + "last_commit_hash": "D49C2BF69F43658D63EF78487258DCA05F7239554E668CF9AE2502A5C6DB104E", + "data_hash": "E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855", + "validators_hash": "5DC32F6AF7A2B6BAF1738FC5ADC8760E3A1A33A98839071D6A6FE503AD3BD52E", + "next_validators_hash": "5DC32F6AF7A2B6BAF1738FC5ADC8760E3A1A33A98839071D6A6FE503AD3BD52E", + "consensus_hash": "048091BC7DDC283F77BFBF91D73C44DA58C3DF8A9CBC867405D8B7F3DAADA22F", + "app_hash": "DEACCBB96F23B7B58CADAFBE7894DDC2C5ACA0F29A68EA1C67407FA06C8D617C", + "last_results_hash": "E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855", + "evidence_hash": "E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855", + "proposer_address": "21FABB12F80DAFF6CB83BA0958B2509FC127C3BD" + }, + "data": { + "txs": [] + }, + "evidence": { + "evidence": [] + }, + "last_commit": { + "height": "4970", + "round": 0, + "block_id": { + "hash": "E1D9F26882FD28447063CC11D326331C4B7C4A6417B2B2E5E38C5484C6D98168", + "parts": { + "total": 1, + "hash": "85847883D9A34F345A2C3E610E1EC524B3C12F41DD2BDC49B36824D9A12EAB32" + } + }, + "signatures": [ + { + "block_id_flag": 2, + "validator_address": "21FABB12F80DAFF6CB83BA0958B2509FC127C3BD", + "timestamp": "2024-11-25T21:33:54.770507235Z", + "signature": "zQb3QPt032nIRTUc7kk4cSxgVF4hpMZycE6ZvpSSZM4Bj1XlOEcdFtHWiLsileVX9RkZHqChzGBstCnfCfK8Bg==" + }, + { + "block_id_flag": 2, + "validator_address": "80A08A0BE0916161F4D6375B300C6F9ADA7A2EA3", + "timestamp": "2024-11-25T21:33:54.785576474Z", + "signature": "qppmmdFchx8RKT4qnNQJGXV8/ukHW7PgI2fg9hrMU55HKosX0nTaz0yFIrDDL3TmHScKhdRYess777xT9T6VBA==" + }, + { + "block_id_flag": 2, + "validator_address": "8AC6613D760B9B5D9C44F97A5893DB4AC9AF1ACB", + "timestamp": "2024-11-25T21:33:54.82911715Z", + "signature": "nlxxO5n0ueLRNjJXqk7afjPPsD4ltJLzPbC/VA3x9VygFZYPM6ngjBoNTIO1BQjnanfHGQrU39R4hGZwNLRnAA==" + }, + { + "block_id_flag": 2, + "validator_address": "9B1E1BA4443F8962F56FB46745A7FBFDD6694B4F", + "timestamp": "2024-11-25T21:33:54.828959724Z", + "signature": "soip0IoEaCwIl2zHB69h5ehCifAw/WhMSO1lE74YCJIxWDSSPFQKQYAMiEBQ5K3+iaONHj7g+yIs4Sk9eCAWAQ==" + }, + { + "block_id_flag": 2, + "validator_address": "F9854E3CB13E69501B5C596C1FB7A44DB231B38E", + "timestamp": "2024-11-25T21:33:54.770123943Z", + "signature": "NA4Y8Yv+z2wUprtT/mV+/lUBRyqF0BmBVFIpfHHjmq3ATsU2SmX5ur1nmukzWx5NiKPCW+fhowRfNH1u+79zCg==" + } + ] + } + } + } +} +``` + ### FAQ & Troubleshooting See the [FAQ & Troubleshooting section in the Full Node Walkthrough](../run_a_node/full_node_walkthrough.md#faq--troubleshooting) From 62b88fcbdb1a83fe0e48789afd874001c2e86a9f Mon Sep 17 00:00:00 2001 From: Daniel Olshansky Date: Thu, 12 Dec 2024 14:00:04 -0800 Subject: [PATCH 2/2] Minor nits and edits --- .../quickstart/full_node_cheatsheet.md | 35 +++++-------------- 1 file changed, 8 insertions(+), 27 deletions(-) diff --git a/docusaurus/docs/operate/quickstart/full_node_cheatsheet.md b/docusaurus/docs/operate/quickstart/full_node_cheatsheet.md index b4a69cfa4..58161381a 100644 --- a/docusaurus/docs/operate/quickstart/full_node_cheatsheet.md +++ b/docusaurus/docs/operate/quickstart/full_node_cheatsheet.md @@ -19,6 +19,7 @@ step of the process, check out the [Full Node Walkthrough](../run_a_node/full_no - [Pre-Requisites](#pre-requisites) - [Install and Run a Full Node using Cosmovisor](#install-and-run-a-full-node-using-cosmovisor) - [Automatic Upgrades Out of the Box](#automatic-upgrades-out-of-the-box) + - [Verify successful installation (curl latest block)](#verify-successful-installation-curl-latest-block) - [FAQ \& Troubleshooting](#faq--troubleshooting) - [\[OPTIONAL\] Do you care to know what just happened?](#optional-do-you-care-to-know-what-just-happened) @@ -75,14 +76,17 @@ When a chain upgrade is proposed and approved: 3. Cosmovisor will switch to the new binary 4. The node will restart automatically -#### Test that installation was successful -Query the latesrt block (i.e. check the node height) +#### Verify successful installation (curl latest block) + +You can verify the installation was successful by querying the latest block (i.e. checking the node height). + +Running the following command: ```bash curl -X GET http://localhost:26657/block | jq ``` -If you set it up correctly, you should see a response in this form: +Should provide a response in this form: ```json { @@ -144,30 +148,7 @@ If you set it up correctly, you should see a response in this form: "timestamp": "2024-11-25T21:33:54.770507235Z", "signature": "zQb3QPt032nIRTUc7kk4cSxgVF4hpMZycE6ZvpSSZM4Bj1XlOEcdFtHWiLsileVX9RkZHqChzGBstCnfCfK8Bg==" }, - { - "block_id_flag": 2, - "validator_address": "80A08A0BE0916161F4D6375B300C6F9ADA7A2EA3", - "timestamp": "2024-11-25T21:33:54.785576474Z", - "signature": "qppmmdFchx8RKT4qnNQJGXV8/ukHW7PgI2fg9hrMU55HKosX0nTaz0yFIrDDL3TmHScKhdRYess777xT9T6VBA==" - }, - { - "block_id_flag": 2, - "validator_address": "8AC6613D760B9B5D9C44F97A5893DB4AC9AF1ACB", - "timestamp": "2024-11-25T21:33:54.82911715Z", - "signature": "nlxxO5n0ueLRNjJXqk7afjPPsD4ltJLzPbC/VA3x9VygFZYPM6ngjBoNTIO1BQjnanfHGQrU39R4hGZwNLRnAA==" - }, - { - "block_id_flag": 2, - "validator_address": "9B1E1BA4443F8962F56FB46745A7FBFDD6694B4F", - "timestamp": "2024-11-25T21:33:54.828959724Z", - "signature": "soip0IoEaCwIl2zHB69h5ehCifAw/WhMSO1lE74YCJIxWDSSPFQKQYAMiEBQ5K3+iaONHj7g+yIs4Sk9eCAWAQ==" - }, - { - "block_id_flag": 2, - "validator_address": "F9854E3CB13E69501B5C596C1FB7A44DB231B38E", - "timestamp": "2024-11-25T21:33:54.770123943Z", - "signature": "NA4Y8Yv+z2wUprtT/mV+/lUBRyqF0BmBVFIpfHHjmq3ATsU2SmX5ur1nmukzWx5NiKPCW+fhowRfNH1u+79zCg==" - } + ... ] } }