From e75c36ab1d157d90f587127b9646c1c33cb26f18 Mon Sep 17 00:00:00 2001 From: Nabarun Date: Thu, 23 May 2024 18:03:03 +0530 Subject: [PATCH] Update readme --- .../stacks/lotus-node/README.md | 37 +++++++++---------- .../stacks/lotus-node/stack.yml | 2 +- 2 files changed, 19 insertions(+), 20 deletions(-) diff --git a/stack-orchestrator/stacks/lotus-node/README.md b/stack-orchestrator/stacks/lotus-node/README.md index 5b88281..153e3b2 100644 --- a/stack-orchestrator/stacks/lotus-node/README.md +++ b/stack-orchestrator/stacks/lotus-node/README.md @@ -1,6 +1,6 @@ # lotus-node -Instructions for deploying a Lotus snap-synced node (for both mainnet and calibnet ) +Instructions for deploying a Lotus snap-synced node (for both mainnet and calibnet) ## Prerequisite @@ -24,7 +24,7 @@ $ laconic-so fetch-stack git.vdb.to/cerc-io/lotus-stack $ laconic-so --stack ~/cerc/lotus-stack/stack-orchestrator/stacks/lotus-node setup-repositories ``` -## Build the fixturenet-eth containers +## Build the Lotus containers ```bash $ laconic-so --stack ~/cerc/lotus-stack/stack-orchestrator/stacks/lotus-node build-containers @@ -39,11 +39,11 @@ $ laconic-so --stack ~/cerc/lotus-stack/stack-orchestrator/stacks/lotus-node dep ## Setup config -Set filepath of downloaded snapshot in config.env -Inside deployment directory, open the `config.env` file and set following env variables: +Set file path of downloaded snapshot in config.env +Inside deployment directory, open the `config.env` file and set following env variables: ```bash -# Filepath of downloaded snapshot +# File path of downloaded snapshot CERC_LOTUS_SNAPSHOT_PATH=/path-to-file/snapshot ``` @@ -59,20 +59,7 @@ $ laconic-so deployment --dir lotus-node-deployment up ``` docker ps | grep lotus ``` - NOTE: Starting node for the first time takes time (~20 mins) as it downloads latest snapshot and imports it - -- Get latest block using CURL - ``` - curl -X POST \ - -H "Content-Type: application/json" \ - --data '{ - "jsonrpc": "2.0", - "method": "eth_getBlockByNumber", - "params": ["latest", false], - "id": 1 - }' \ - http://localhost:1234/rpc/v1 - ``` + NOTE: Starting node for the first time takes time (~20 mins) as it imports the snapshot - To check whether Lotus node has synced till head ```bash @@ -85,6 +72,18 @@ $ laconic-so deployment --dir lotus-node-deployment up # Done! ``` When the lotus sync wait command shows done you are fully synced with the chain + - Get latest block using CURL + ``` + curl -X POST \ + -H "Content-Type: application/json" \ + --data '{ + "jsonrpc": "2.0", + "method": "eth_getBlockByNumber", + "params": ["latest", false], + "id": 1 + }' \ + http://localhost:1234/rpc/v1 + ``` ## Clean up diff --git a/stack-orchestrator/stacks/lotus-node/stack.yml b/stack-orchestrator/stacks/lotus-node/stack.yml index a8626d0..1043eee 100644 --- a/stack-orchestrator/stacks/lotus-node/stack.yml +++ b/stack-orchestrator/stacks/lotus-node/stack.yml @@ -2,7 +2,7 @@ version: "1.0" name: lotus-node description: "Lotus node stack" repos: - # TODO: Use a release version tag to match modified Dockerfile that is replaced in container build + # TODO: Use a release version tag - git.vdb.to/cerc-io/lotus containers: - cerc/lotus-node