Skip to content

Commit

Permalink
add epoch as variable
Browse files Browse the repository at this point in the history
  • Loading branch information
0o-de-lally committed Nov 14, 2023
1 parent 32ffda8 commit d13db50
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/genesis/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -60,16 +60,16 @@ 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:
cd ${DATA_PATH} && git clone -b v6 https://github.com/0LNetworkCommunity/libra-legacy-v6

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}

Expand Down

0 comments on commit d13db50

Please sign in to comment.