Skip to content

Commit 13298a6

Browse files
authored
feat(mithril): inform user snapshot downloads may take a while (#280)
Signed-off-by: Chris Gianelloni <[email protected]>
1 parent 3896703 commit 13298a6

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

bin/run-network

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ if ! test -e /data/db/protocolMagicId; then
3434
mkdir -p /data
3535
cd /data
3636
echo "Starting: /usr/local/bin/mithril-client cardano-db download ${SNAPSHOT_DIGEST} ${ANCILLARY_VERIFICATION_KEY:+--include-ancillary}"
37+
echo "(This could take a while...)"
3738
# Handle SIGTERM during initial sync
3839
trap 'kill -TERM $(pidof mithril-client)' TERM
3940
# Run mithril-client in the background so we can capture the PID and wait

bin/run-node

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ if ! test -e ${CARDANO_DATABASE_PATH}/protocolMagicId; then
130130
cd $(dirname ${CARDANO_DATABASE_PATH})
131131
export AGGREGATOR_ENDPOINT GENESIS_VERIFICATION_KEY ANCILLARY_VERIFICATION_KEY SNAPSHOT_DIGEST
132132
echo "Starting: /usr/local/bin/mithril-client cardano-db download ${SNAPSHOT_DIGEST} ${ANCILLARY_VERIFICATION_KEY:+--include-ancillary}"
133+
echo "(This could take a while...)"
133134
if [[ $(cd ${CARDANO_DATABASE_PATH} 2>/dev/null; pwd -P) != $(pwd -P)/db ]]; then
134135
rm -rf db/*
135136
fi

0 commit comments

Comments
 (0)