Add a stack to run a BSC node #1

Merged
ashwin merged 16 commits from pm-bsc-stack into main 2024-06-05 12:28:20 +00:00
2 changed files with 3 additions and 3 deletions
Showing only changes of commit b7ccf24c93 - Show all commits

View File

@ -22,7 +22,7 @@ fi
# Use snapshot if provided
# Take first file from the snapshot dir
snapshot_file=$((ls /var/tmp/snapshot/) 2>/dev/null | head -1)
snapshot_file=$((ls /var/tmp/snapshot/*) 2>/dev/null | head -1)
geth_dir=${DATA_DIR}/geth
ADDITIONAL_FLAGS=""
if [ ! -d "$geth_dir" ] && [ "${CERC_USE_SNAPSHOT}" = "true" ] && [ -n "$snapshot_file" ]; then

View File

@ -42,7 +42,7 @@ Instructions for running a BSC node
laconic-so --stack ~/cerc/bsc-stack/stack-orchestrator/stacks/bsc-node deploy create --spec-file bsc-node-spec.yml --deployment-dir bsc-node-deployment
```
* (Optional) Copy over the snapshot file (`*.tar.lz4`) in snapshot data directory in the deployment (`bsc-node-deployment/data/snapshot`):
* (Optional) Copy over the snapshot file (`*.tar.lz4` or `*.tar.zst`) in snapshot data directory in the deployment (`bsc-node-deployment/data/snapshot`):
```bash
# Example
@ -61,7 +61,7 @@ Instructions for running a BSC node
CERC_BSC_NETWORK=
# Whether to sync from a snapshot (true | false) (default: false)
# Requires snapshot file with extension .tar.lz4 to be placed in the snapshot directory
# Requires snapshot file with extension .tar.lz4 or .tar.zst to be placed in the snapshot directory
CERC_USE_SNAPSHOT=
# Whether to run as a fast node (true | false) (default: false)