Skip to content

Commit d5a8754

Browse files
authored
Merge branch 'main' into akaladarshi/fix-estimate-msg-gas
2 parents 8e73d66 + ac8cd71 commit d5a8754

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

scripts/tests/calibnet_db_migration.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22
set -euxo pipefail
33

4-
# This script tests the migration(s) from Forest 0.19.2 to the current version.
4+
# This script tests the migration(s) from a given `FOREST_INIT_VERSION` to the current version.
55
# As simple as it is, it will detect regressions in the migration process and breaking changes.
66

77
source "$(dirname "$0")/harness.sh"
@@ -11,11 +11,11 @@ mkdir -p "${DATA_DIR}"
1111

1212
chmod -R 777 "${DATA_DIR}"
1313

14-
FOREST_INIT_VERSION="0.19.2"
14+
FOREST_INIT_VERSION="0.30.0"
1515

16-
# Run Forest 0.19.2 with mounted db so that we can re-use it later.
16+
# Run older Forest with mounted db so that we can re-use it later.
1717
docker run --init --rm --name forest-${FOREST_INIT_VERSION} \
18-
--volume "${DATA_DIR}":/home/forest/.local/share/forest \
18+
--volume "${DATA_DIR}":/root/.local/share/forest \
1919
ghcr.io/chainsafe/forest:v${FOREST_INIT_VERSION} \
2020
--chain calibnet \
2121
--encrypt-keystore false \
@@ -58,7 +58,7 @@ export FULLNODE_API_INFO
5858
forest_wait_for_sync
5959
forest_check_db_stats
6060

61-
# Assert there is no "0.19.2" directory in the database directory. This and a successful sync indicate that the database was successfully migrated.
61+
# Assert there is no old directory in the database directory. This and a successful sync indicate that the database was successfully migrated.
6262
if [ -d "${DATA_DIR}/calibnet/${FOREST_INIT_VERSION}" ]; then
6363
echo "Database directory not migrated"
6464
exit 1

scripts/tests/harness.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ function forest_download_and_import_snapshot {
2929

3030
function forest_download_and_import_snapshot_with_f3 {
3131
echo "Downloading v1 snapshot"
32-
aria2c -x5 https://forest-archive.chainsafe.dev/latest/calibnet/ -o v1.forest.car.zst
32+
aria2c -x5 https://forest-archive.chainsafe.dev/latest-v1/calibnet -o v1.forest.car.zst
3333
echo "Inspecting v1 snapshot"
3434
$FOREST_TOOL_PATH archive info v1.forest.car.zst
3535
echo "Downloading F3 snapshot"

src/cli_shared/snapshot.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ macro_rules! define_urls {
134134
define_urls!(
135135
const FOREST_MAINNET_COMPRESSED: &str = "https://forest-archive.chainsafe.dev/latest/mainnet/";
136136
const FOREST_CALIBNET_COMPRESSED: &str =
137-
"https://forest-archive.chainsafe.dev/latest/calibnet/";
137+
"https://forest-archive.chainsafe.dev/latest-v1/calibnet";
138138
);
139139

140140
pub fn stable_url(vendor: TrustedVendor, chain: &NetworkChain) -> anyhow::Result<Url> {

0 commit comments

Comments
 (0)