From d13db5011795ce69a6b9baa59c4c981dfaf18d8f Mon Sep 17 00:00:00 2001 From: 0o-de-lally <1364012+0o-de-lally@users.noreply.github.com> Date: Tue, 14 Nov 2023 21:50:27 +0000 Subject: [PATCH] add epoch as variable --- tools/genesis/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/genesis/Makefile b/tools/genesis/Makefile index 162866100..de95501a2 100644 --- a/tools/genesis/Makefile +++ b/tools/genesis/Makefile @@ -60,8 +60,8 @@ legacy: ancestry dump ancestry: ### Fetch Ancestry Data, Snapshot, and Use v5.2 codebase and snapshot to generate recovery.json for seeding v6.9.x state sudo rm -Rf ~/libra-recovery && mkdir -p ~/libra-recovery - wget https://github.com/0LNetworkCommunity/epoch-archive/raw/main/670.tar.gz -O ~/libra-recovery/670.tar.gz - cd ~/libra-recovery && tar -xvzf 670.tar.gz + wget https://github.com/0LNetworkCommunity/epoch-archive/raw/main/${EPOCH}.tar.gz -O ~/libra-recovery/${EPOCH}.tar.gz + cd ~/libra-recovery && tar -xvzf ${EPOCH}.tar.gz wget https://raw.githubusercontent.com/sirouk/ol-data-extraction/v-6.9.x-ready/assets/data.json -O ~/libra-recovery/v5_ancestry.json build-legacy: @@ -69,7 +69,7 @@ build-legacy: recovery: cd ${DATA_PATH}/libra-legacy-v6/ol/genesis-tools && \ - cargo r -p ol-genesis-tools -- --export-json ${DATA_PATH}/libra-recovery/v5_recovery.json --snapshot-path ${DATA_PATH}/libra-recovery/670/state_ver* --ancestry-file ${RECOVERY_FILE} + cargo r -p ol-genesis-tools -- --export-json ${DATA_PATH}/libra-recovery/v5_recovery.json --snapshot-path ${DATA_PATH}/libra-recovery/${EPOCH}/state_ver* --ancestry-file ${RECOVERY_FILE} md5sum ${RECOVERY_FILE}