diff --git a/README.md b/README.md index 3280f8f..64b63f5 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # bsc-stack -Stack definitions for BSC full node deployment. +Stack definitions for BSC node deployment. [stack documentation](stack-orchestrator/stacks/bsc-node/README.md) diff --git a/stack-orchestrator/config/bsc-node/docker-entrypoint.sh b/stack-orchestrator/config/bsc-node/docker-entrypoint.sh index a003169..1787875 100755 --- a/stack-orchestrator/config/bsc-node/docker-entrypoint.sh +++ b/stack-orchestrator/config/bsc-node/docker-entrypoint.sh @@ -15,8 +15,8 @@ if [ -f "$BSC_CONFIG" ]; then else echo "Config file not found at $BSC_CONFIG, downloading config for $CERC_BSC_NETWORK..." - # Download and unzip the config files - 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) + # 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/156666248 | grep browser_ | grep $CERC_BSC_NETWORK | cut -d\" -f4) unzip config.zip -d config fi diff --git a/stack-orchestrator/stacks/bsc-node/README.md b/stack-orchestrator/stacks/bsc-node/README.md index e9d3afa..8b43f83 100644 --- a/stack-orchestrator/stacks/bsc-node/README.md +++ b/stack-orchestrator/stacks/bsc-node/README.md @@ -4,7 +4,15 @@ Instructions for running a BSC node ## Setup -* (Optional) Download the snapshot for BSC network (mainetn | testnet) by following instructions from +* (Optional) Download the snapshot for BSC network (mainnet | testnet) by following instructions from + + ```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: @@ -43,7 +51,7 @@ Instructions for running a BSC node ## 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 # All optional @@ -99,7 +107,7 @@ laconic-so deployment --dir bsc-node-deployment up # Inside the bsc container # Start geth console - geth attach ipc:node/geth.ipc + geth attach ipc:/data/geth.ipc >eth.syncing ```