diff --git a/bin/run-network b/bin/run-network index ab907d2..2f94e4e 100755 --- a/bin/run-network +++ b/bin/run-network @@ -28,15 +28,16 @@ if ! test -e /data/db/protocolMagicId; then esac if [[ ${__skip} != true ]]; then export GENESIS_VERIFICATION_KEY=$(/dev/null; pwd -P) != $(pwd -P)/db ]]; then rm -rf db/* fi # Handle SIGTERM during initial sync trap 'kill -TERM $(pidof mithril-client)' TERM # Run mithril-client in the background so we can capture the PID and wait - mithril-client cardano-db download ${SNAPSHOT_DIGEST} & + mithril-client cardano-db download "${SNAPSHOT_DIGEST}" ${ANCILLARY_VERIFICATION_KEY:+--include-ancillary} & _mithril_pid=$! wait $_mithril_pid || exit $? # Reset signal handler and wait again (to avoid race condition)