Skip to content

Commit

Permalink
adapt for rollup storage version 5
Browse files Browse the repository at this point in the history
  • Loading branch information
puppetninja committed Nov 22, 2024
1 parent 48bc17b commit 5eac76a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions charts/tezos/scripts/smart-rollup-snapshot-downloader.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ if [ ! -d "$data_dir" ]; then
exit 1
fi

if [ -e "$rollup_data_dir/storage/l2_blocks/data" ]; then
if [ -e "$rollup_data_dir/store.sqlite" ]; then
echo "Smart rollup snapshot has already been imported. Exiting."
exit 0
fi
Expand All @@ -27,4 +27,4 @@ echo "Downloading ${SNAPSHOT_URL}"
mkdir -p "$rollup_data_dir"
curl -LfsS ${SNAPSHOT_URL} | tee >(sha256sum > ${snapshot_file}.sha256sum) > "$snapshot_file"

chown -R 1000:1000 "$data_dir"
chown -R 1000:1000 "$data_dir"
2 changes: 1 addition & 1 deletion charts/tezos/scripts/smart-rollup-snapshot-importer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ if [ ! -f ${snapshot_file} ]; then
exit 0
fi

if [ -e "$rollup_data_dir/storage/l2_blocks/data" ]; then
if [ -e "$rollup_data_dir/store.sqlite" ]; then
echo "Smart rollup snapshot has already been imported. Exiting."
exit 0
fi
Expand Down

0 comments on commit 5eac76a

Please sign in to comment.