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
76
76
echo CARDANO_SHELLEY_OPERATIONAL_CERTIFICATE=${CARDANO_SHELLEY_OPERATIONAL_CERTIFICATE}
77
77
fi
78
78
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
-
88
79
echo AGGREGATOR_ENDPOINT=${AGGREGATOR_ENDPOINT}
89
80
echo GENESIS_VERIFICATION_KEY=${GENESIS_VERIFICATION_KEY}
90
81
echo SNAPSHOT_DIGEST=${SNAPSHOT_DIGEST}
@@ -100,6 +91,9 @@ if ! test -e ${CARDANO_DATABASE_PATH}/protocolMagicId; then
100
91
cd $( dirname ${CARDANO_DATABASE_PATH} )
101
92
export AGGREGATOR_ENDPOINT GENESIS_VERIFICATION_KEY SNAPSHOT_DIGEST
102
93
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
103
97
mithril-client snapshot download ${SNAPSHOT_DIGEST}
104
98
if [[ $( cd ${CARDANO_DATABASE_PATH} ; pwd -P) != $( pwd -P) /db ]]; then
105
99
mv -f db/* ${CARDANO_DATABASE_PATH} /
You can’t perform that action at this time.
0 commit comments