Skip to content

Commit

Permalink
update ancestry file
Browse files Browse the repository at this point in the history
  • Loading branch information
0o-de-lally committed Nov 14, 2023
1 parent 9d6336b commit b8aa80b
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 @@ -52,6 +52,8 @@ check:

install:
cd ${SOURCE_PATH} && cargo build --release -p libra -p libra-genesis-tools -p libra-framework
# legacy source
cd ${DATA_PATH} && git clone -b v6 https://github.com/0LNetworkCommunity/libra-legacy-v6
cp ${SOURCE_PATH}/target/release/libra* ${BINS_PATH}

register:
Expand All @@ -69,10 +71,8 @@ get-legacy:
wget https://raw.githubusercontent.com/sirouk/ol-data-extraction/v-6.9.x-ready/assets/data.json -O ${DATA_PATH}/libra-recovery/v5_ancestry.json

recovery:
cd ${DATA_PATH} && git clone -b v6 https://github.com/0LNetworkCommunity/libra-legacy-v6

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/${EPOCH}/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 ${DATA_PATH}/libra-recovery/v5_ancestry.json

md5sum ${RECOVERY_FILE}

Expand Down

0 comments on commit b8aa80b

Please sign in to comment.