Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions bin/run-network
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ if ! test -e /data/db/protocolMagicId; then
mkdir -p /data
cd /data
echo "Starting: /usr/local/bin/mithril-client cardano-db download ${SNAPSHOT_DIGEST} ${ANCILLARY_VERIFICATION_KEY:+--include-ancillary}"
echo "(This could take a while...)"
# 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
Expand Down
1 change: 1 addition & 0 deletions bin/run-node
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ if ! test -e ${CARDANO_DATABASE_PATH}/protocolMagicId; then
cd $(dirname ${CARDANO_DATABASE_PATH})
export AGGREGATOR_ENDPOINT GENESIS_VERIFICATION_KEY ANCILLARY_VERIFICATION_KEY SNAPSHOT_DIGEST
echo "Starting: /usr/local/bin/mithril-client cardano-db download ${SNAPSHOT_DIGEST} ${ANCILLARY_VERIFICATION_KEY:+--include-ancillary}"
echo "(This could take a while...)"
if [[ $(cd ${CARDANO_DATABASE_PATH} 2>/dev/null; pwd -P) != $(pwd -P)/db ]]; then
rm -rf db/*
fi
Expand Down
Loading