Skip to content

Commit

Permalink
remove --chain for forest-cli invocations (#328)
Browse files Browse the repository at this point in the history
  • Loading branch information
LesnyRumcajs authored Nov 2, 2023
1 parent 61d5548 commit a02896a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions terraform/modules/daily_snapshot/service/upload_snapshot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,13 @@ forest-tool db destroy --force --config config.toml --chain "$CHAIN_NAME"
forest --config config.toml --chain "$CHAIN_NAME" --auto-download-snapshot --halt-after-import
forest --config config.toml --chain "$CHAIN_NAME" --no-gc --save-token=token.txt --detach
timeout "$SYNC_TIMEOUT" forest-cli --chain "$CHAIN_NAME" sync wait
timeout "$SYNC_TIMEOUT" forest-cli sync wait
# Forest isn't waiting until fully synced. Tracking issue: https://github.com/ChainSafe/forest/issues/3540
# Calling 'sync wait' multiple times is a work-around.
timeout "$SYNC_TIMEOUT" forest-cli --chain "$CHAIN_NAME" sync wait
timeout "$SYNC_TIMEOUT" forest-cli --chain "$CHAIN_NAME" sync wait
timeout "$SYNC_TIMEOUT" forest-cli --chain "$CHAIN_NAME" sync wait
forest-cli --chain "$CHAIN_NAME" snapshot export -o forest_db/
timeout "$SYNC_TIMEOUT" forest-cli sync wait
timeout "$SYNC_TIMEOUT" forest-cli sync wait
timeout "$SYNC_TIMEOUT" forest-cli sync wait
forest-cli snapshot export -o forest_db/
forest-cli --token=\$(cat token.txt) shutdown --force
# Run full checks only for calibnet, given that it takes too long for mainnet.
Expand Down

0 comments on commit a02896a

Please sign in to comment.