File tree Expand file tree Collapse file tree 3 files changed +6
-7
lines changed Expand file tree Collapse file tree 3 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ RUN echo "Building tags/${NODE_VERSION}..." \
2121 && rm -rf /root/.cabal/store/ghc-${GHC_VERSION}
2222
2323FROM ghcr.io/blinklabs-io/cardano-cli:8.22.0.0 AS cardano-cli
24- FROM ghcr.io/blinklabs-io/mithril-client:0.7.6 -1 AS mithril-client
24+ FROM ghcr.io/blinklabs-io/mithril-client:0.8.0 -1 AS mithril-client
2525FROM ghcr.io/blinklabs-io/nview:0.9.3 AS nview
2626FROM ghcr.io/blinklabs-io/txtop:0.8.0 AS txtop
2727
Original file line number Diff line number Diff line change 1414
1515# Mithril
1616if ! test -e /data/db/protocolMagicId; then
17- __base=https://raw.githubusercontent.com/input-output-hk/mithril/main/mithril-infra/configuration
1817 RESTORE_NETWORK=${RESTORE_NETWORK:- true}
1918 if [[ ${RESTORE_NETWORK} != true ]]; then
2019 __skip=true
@@ -28,14 +27,14 @@ if ! test -e /data/db/protocolMagicId; then
2827 if [[ ${__skip} != true ]]; then
2928 export GENESIS_VERIFICATION_KEY=$( < /opt/cardano/config/${NETWORK} /genesis.vkey)
3029 export AGGREGATOR_ENDPOINT=https://aggregator.${__path} .api.mithril.network/aggregator
31- export SNAPSHOT_DIGEST=$( mithril-client snapshot list --json | jq -r ' .[0].digest' )
30+ export SNAPSHOT_DIGEST=$( mithril-client cardano-db snapshot list --json | jq -r ' .[0].digest' )
3231 mkdir -p /data
3332 cd /data
34- echo " Starting: /usr/local/bin/mithril-client snapshot download ${SNAPSHOT_DIGEST} "
33+ echo " Starting: /usr/local/bin/mithril-client cardano-db download ${SNAPSHOT_DIGEST} "
3534 # Handle SIGTERM during initial sync
3635 trap ' kill -TERM $(pidof mithril-client)' TERM
3736 # Run mithril-client in the background so we can capture the PID and wait
38- mithril-client snapshot download ${SNAPSHOT_DIGEST} &
37+ mithril-client cardano-db snapshot download ${SNAPSHOT_DIGEST} &
3938 _mithril_pid=$!
4039 wait $_mithril_pid || exit $?
4140 # Reset signal handler and wait again (to avoid race condition)
Original file line number Diff line number Diff line change @@ -96,14 +96,14 @@ if ! test -e ${CARDANO_DATABASE_PATH}/protocolMagicId; then
9696 mkdir -p $( dirname ${CARDANO_DATABASE_PATH} )
9797 cd $( dirname ${CARDANO_DATABASE_PATH} )
9898 export AGGREGATOR_ENDPOINT GENESIS_VERIFICATION_KEY SNAPSHOT_DIGEST
99- echo " Starting: /usr/local/bin/mithril-client snapshot download ${SNAPSHOT_DIGEST} "
99+ echo " Starting: /usr/local/bin/mithril-client cardano-db download ${SNAPSHOT_DIGEST} "
100100 if [[ $( cd ${CARDANO_DATABASE_PATH} ; pwd -P) != $( pwd -P) /db ]]; then
101101 rm -rf db/*
102102 fi
103103 # Handle SIGTERM during initial sync
104104 trap ' kill -TERM $(pidof mithril-client)' TERM
105105 # Run mithril-client in the background so we can capture the PID and wait
106- mithril-client snapshot download ${SNAPSHOT_DIGEST} &
106+ mithril-client cardano-db download ${SNAPSHOT_DIGEST} &
107107 _mithril_pid=$!
108108 wait $_mithril_pid || exit $?
109109 # Reset signal handler and wait again (to avoid race condition)
You can’t perform that action at this time.
0 commit comments