File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -76,15 +76,6 @@ if [[ ${CARDANO_BLOCK_PRODUCER} == true ]]; then
7676 echo CARDANO_SHELLEY_OPERATIONAL_CERTIFICATE=${CARDANO_SHELLEY_OPERATIONAL_CERTIFICATE}
7777fi
7878
79- case ${CARDANO_NETWORK} in
80- preview|sanchonet)
81- if [[ ${RESTORE_SNAPSHOT} == true ]]; then
82- echo " Mithril not supported on ${CARDANO_NETWORK} ... skipping"
83- fi
84- RESTORE_SNAPSHOT=false
85- ;;
86- esac
87-
8879echo AGGREGATOR_ENDPOINT=${AGGREGATOR_ENDPOINT}
8980echo GENESIS_VERIFICATION_KEY=${GENESIS_VERIFICATION_KEY}
9081echo SNAPSHOT_DIGEST=${SNAPSHOT_DIGEST}
@@ -100,6 +91,9 @@ if ! test -e ${CARDANO_DATABASE_PATH}/protocolMagicId; then
10091 cd $( dirname ${CARDANO_DATABASE_PATH} )
10192 export AGGREGATOR_ENDPOINT GENESIS_VERIFICATION_KEY SNAPSHOT_DIGEST
10293 echo " Starting: /usr/local/bin/mithril-client snapshot download ${SNAPSHOT_DIGEST} "
94+ if [[ $( cd ${CARDANO_DATABASE_PATH} ; pwd -P) != $( pwd -P) /db ]]; then
95+ rm -rf db/*
96+ fi
10397 mithril-client snapshot download ${SNAPSHOT_DIGEST}
10498 if [[ $( cd ${CARDANO_DATABASE_PATH} ; pwd -P) != $( pwd -P) /db ]]; then
10599 mv -f db/* ${CARDANO_DATABASE_PATH} /
You can’t perform that action at this time.
0 commit comments