Add an example for downloading snapshot and fix typos

This commit is contained in:
Prathamesh Musale 2024-06-05 10:50:01 +05:30
parent cb4b2501eb
commit 6794cb3a93
3 changed files with 14 additions and 6 deletions

View File

@ -1,5 +1,5 @@
# bsc-stack # bsc-stack
Stack definitions for BSC full node deployment. Stack definitions for BSC node deployment.
[stack documentation](stack-orchestrator/stacks/bsc-node/README.md) [stack documentation](stack-orchestrator/stacks/bsc-node/README.md)

View File

@ -15,8 +15,8 @@ if [ -f "$BSC_CONFIG" ]; then
else else
echo "Config file not found at $BSC_CONFIG, downloading config for $CERC_BSC_NETWORK..." echo "Config file not found at $BSC_CONFIG, downloading config for $CERC_BSC_NETWORK..."
# Download and unzip the config files # Download and unzip the config files (https://github.com/bnb-chain/bsc/releases/tag/v1.4.8)
wget -O config.zip $(curl -s https://api.github.com/repos/bnb-chain/bsc/releases/latest | grep browser_ | grep $CERC_BSC_NETWORK | cut -d\" -f4) wget -O config.zip $(curl -s https://api.github.com/repos/bnb-chain/bsc/releases/156666248 | grep browser_ | grep $CERC_BSC_NETWORK | cut -d\" -f4)
unzip config.zip -d config unzip config.zip -d config
fi fi

View File

@ -4,7 +4,15 @@ Instructions for running a BSC node
## Setup ## Setup
* (Optional) Download the snapshot for BSC network (mainetn | testnet) by following instructions from <https://github.com/bnb-chain/bsc-snapshots> * (Optional) Download the snapshot for BSC network (mainnet | testnet) by following instructions from <https://github.com/bnb-chain/bsc-snapshots>
```bash
# Example (mainnet)
wget -O geth.tar.lz4 https://pub-c0627345c16f47ab858c9469133073a8.r2.dev/geth-pbss-pebble-20240514.tar.lz4
# Example (testnet)
wget -O geth.tar.lz4 https://pub-c0627345c16f47ab858c9469133073a8.r2.dev/testnet-geth-pbss-20240307.tar.lz4
```
* Clone the stack repo: * Clone the stack repo:
@ -43,7 +51,7 @@ Instructions for running a BSC node
## Configuration ## Configuration
* Environment variables for Lotus node can be configured by setting them in `config.env` inside deployment directory: * Environment variables for BSC node can be configured by setting them in `config.env` inside the deployment directory:
```bash ```bash
# All optional # All optional
@ -99,7 +107,7 @@ laconic-so deployment --dir bsc-node-deployment up
# Inside the bsc container # Inside the bsc container
# Start geth console # Start geth console
geth attach ipc:node/geth.ipc geth attach ipc:/data/geth.ipc
>eth.syncing >eth.syncing
``` ```