Skip to content

Commit

Permalink
use latest forest
Browse files Browse the repository at this point in the history
  • Loading branch information
sudo-shashank committed May 16, 2024
1 parent 40effd6 commit 5f6cc57
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ansible/archival-snapshots/playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
local_resources_path: "resources"
remote_resources_path: "/mnt/md0/exported/archival"
zip_file_name: "resources.zip"
forest_version: "v0.17.1"
forest_version: "v0.17.2"
forest_release_url: "https://github.com/ChainSafe/forest/releases/download/{{ forest_version }}/forest-{{ forest_version }}-linux-amd64.zip"
tasks:
- name: Check if AWS CLI is installed
Expand Down
2 changes: 1 addition & 1 deletion ansible/archival-snapshots/resources/diff_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -euxo pipefail

FOREST=/mnt/md0/exported/archival/forest-v0.17.1/forest-tool
FOREST=/mnt/md0/exported/archival/forest-v0.17.2/forest-tool
UPLOADED_DIFFS=/mnt/md0/exported/archival/uploaded-diff-snaps.txt

EPOCH_START="$1"
Expand Down
4 changes: 2 additions & 2 deletions ansible/archival-snapshots/resources/main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ set -euxo pipefail
GENESIS_TIMESTAMP=1598306400
SECONDS_PER_EPOCH=30

FOREST_CLI="/mnt/md0/exported/archival/forest-v0.17.1/forest-cli"
FOREST_TOOL="/mnt/md0/exported/archival/forest-v0.17.1/forest-tool"
FOREST_CLI="/mnt/md0/exported/archival/forest-v0.17.2/forest-cli"
FOREST_TOOL="/mnt/md0/exported/archival/forest-v0.17.2/forest-tool"

CURRENT_SNAPSHOT=$(aws --profile prod --endpoint "$ENDPOINT" s3 ls "s3://forest-archive/mainnet/lite/" | sort | tail -n 1 | awk '{print $NF}')
CURRENT_EPOCH=$(echo "$CURRENT_SNAPSHOT" | awk -F'_' '{gsub(/[^0-9]/, "", $6); print $6}')
Expand Down

0 comments on commit 5f6cc57

Please sign in to comment.