From 89d2e2946b4fa472e3a41d72655e4b90dac0c881 Mon Sep 17 00:00:00 2001 From: Ashiiix <99830170+ashiiix@users.noreply.github.com> Date: Mon, 25 Apr 2022 23:20:14 -0400 Subject: [PATCH] Fix the check target to display the correct waypoint (#1092) Needs to split the check target into two separate one to make it act sequentially --- .../diem-tools/writeset-transaction-generator/Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/language/diem-tools/writeset-transaction-generator/Makefile b/language/diem-tools/writeset-transaction-generator/Makefile index b16b6747c3..143fae3971 100644 --- a/language/diem-tools/writeset-transaction-generator/Makefile +++ b/language/diem-tools/writeset-transaction-generator/Makefile @@ -61,9 +61,13 @@ tx-debug: # tx-custom: # cd ${SOURCE_PATH} && cargo r -p diem-writeset-generator -- --db ${DATA_PATH}/db --output ${DATA_PATH}/restore/rescue.blob build-custom-script set_testnet.move '{}' +# Calls 2 targets to syncronize the final output +check: check-work check-echo -check: +check-work: cd ${SOURCE_PATH} && cargo r -p db-bootstrapper -- ${DATA_PATH}/db/ --genesis-txn-file ${RESCUE_PATH}/rescue.blob | grep -oP 'waypoint: \K\w+:\w+' > ${RESCUE_PATH}/rescue_waypoint.txt + +check-echo: @echo Waypoint: $(shell cat ${RESCUE_PATH}/rescue_waypoint.txt ) commit: @@ -136,4 +140,4 @@ debug: wipe tx-debug check # STEP 5: Trigger an epoch boundary # new writeset "boundary" # - makes sure theres only a validator set of 1 -# - resets the counters \ No newline at end of file +# - resets the counters