Skip to content

Commit 79e9e9c

Browse files
authored
fix(mithril): update script to match aggregator response (#314)
It seems mithril aggregator api has changed its response and snapshot's digest is now under key .hash Signed-off-by: Roberto C. Morano <rcmorano@none.guru>
1 parent 85e366c commit 79e9e9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/run-network

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ if ! test -e /data/db/protocolMagicId; then
3030
export GENESIS_VERIFICATION_KEY=$(</opt/cardano/config/${NETWORK}/genesis.vkey)
3131
export ANCILLARY_VERIFICATION_KEY=$(</opt/cardano/config/${NETWORK}/ancillary.vkey)
3232
export AGGREGATOR_ENDPOINT=https://aggregator.${__path}.api.mithril.network/aggregator
33-
export SNAPSHOT_DIGEST=$(mithril-client cardano-db snapshot list --json | jq -r '.[0].digest')
33+
export SNAPSHOT_DIGEST=$(mithril-client cardano-db snapshot list --json | jq -r '.[0].hash')
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}"

0 commit comments

Comments
 (0)