Skip to content

Commit 3a70f5e

Browse files
committed
feat: use local mithril genesis.vkey always
Signed-off-by: Chris Gianelloni <[email protected]>
1 parent d905297 commit 3a70f5e

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

bin/run-network

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,11 @@ if ! test -e /data/db/protocolMagicId; then
1818
case ${NETWORK} in
1919
mainnet|preprod) __path=release-${NETWORK} ;;
2020
preview) __path=pre-release-${NETWORK} ;;
21+
sanchonet) __path=testing-${NETWORK} ;;
2122
*) echo "Mithril not supported on ${NETWORK}... skipping"; __skip=true ;;
2223
esac
2324
if [[ ${__skip} != true ]]; then
24-
export GENESIS_VERIFICATION_KEY=$(curl ${__base}/${__path}/genesis.vkey 2> /dev/null)
25+
export GENESIS_VERIFICATION_KEY=$(</opt/cardano/config/${NETWORK}/genesis.vkey)
2526
export AGGREGATOR_ENDPOINT=https://aggregator.${__path}.api.mithril.network/aggregator
2627
export SNAPSHOT_DIGEST=$(mithril-client snapshot list --json | jq -r '.[0].digest')
2728
mkdir -p /data

bin/run-node

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ CARDANO_TOPOLOGY=${CARDANO_TOPOLOGY:-${CARDANO_CONFIG_BASE}/${CARDANO_NETWORK}/t
4646
case ${CARDANO_NETWORK} in
4747
mainnet|preprod) __path=release-${CARDANO_NETWORK} ;;
4848
preview) __path=pre-release-${CARDANO_NETWORK} ;;
49+
sanchonet) __path=testing-${CARDANO_NETWORK} ;;
4950
esac
5051
AGGREGATOR_ENDPOINT=${AGGREGATOR_ENDPOINT:-https://aggregator.${__path}.api.mithril.network/aggregator}
5152
GENESIS_VERIFICATION_KEY_PATH=${GENESIS_VERIFICATION_KEY_PATH:-${CARDANO_CONFIG_BASE}/${CARDANO_NETWORK}/genesis.vkey}

config/sanchonet/genesis.vkey

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
5b3132372c37332c3132342c3136312c362c3133372c3133312c3231332c3230372c3131372c3139382c38352c3137362c3139392c3136322c3234312c36382c3132332c3131392c3134352c31332c3233322c3234332c34392c3232392c322c3234392c3230352c3230352c33392c3233352c34345d

0 commit comments

Comments
 (0)