Skip to content

Commit

Permalink
Record snapshot tip
Browse files Browse the repository at this point in the history
  • Loading branch information
sky1045 committed Jan 23, 2025
1 parent ed91be6 commit ba7a38b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions charts/stateproxy/templates/configmap-download-snapshot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,8 @@ data:
aria2c "$snapshot_zip_url" -j10 -x10 --continue=true
echo "Unzipping $snapshot_zip_filename"
unzip -o "$snapshot_zip_filename" -d "$save_dir"
rm $snapshot_zip_filename
rm $save_dir/blockindex.db 2>/dev/null
cat $save_dir/$mainnet_snapshot_json_filename | jq ".Index" > $save_dir/tip
fi

0 comments on commit ba7a38b

Please sign in to comment.