Skip to content

Commit

Permalink
Fix the check target to display the correct waypoint (#1092)
Browse files Browse the repository at this point in the history
Needs to split the check target into two separate one to make it act sequentially
  • Loading branch information
ashiiix authored Apr 26, 2022
1 parent bd62f62 commit 89d2e29
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions language/diem-tools/writeset-transaction-generator/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
# - resets the counters

0 comments on commit 89d2e29

Please sign in to comment.