Skip to content

Commit 5382d30

Browse files
committed
feat: support Cardano node '8.10.0' in devnet
1 parent 8725527 commit 5382d30

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

mithril-test-lab/mithril-devnet/mkfiles/mkfiles-cardano.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,12 @@ if [ $(version_lt "${CARDANO_NODE_VERSION_RELEASE}" "8.8.0") = "false" ]; then
9494
cat ${ARTIFACTS_DIR_TEMP}/genesis.conway.spec.json
9595
fi
9696

97+
if [ $(version_lt "${CARDANO_NODE_VERSION_RELEASE}" "8.10.0") = "false" ]; then
98+
# Fix >=8.10.0, to avoid the following errors: 'Command failed: genesis create-staked Error: Error while decoding Shelley genesis at: ./temp/genesis.conway.spec.json Error: Error in $: key "minFeeRefScriptCostPerByte" not found
99+
mv ${ARTIFACTS_DIR_TEMP}/genesis.conway.spec.json ${ARTIFACTS_DIR_TEMP}/genesis.conway.spec.json.tmp && cat ${ARTIFACTS_DIR_TEMP}/genesis.conway.spec.json.tmp | jq '. += {"minFeeRefScriptCostPerByte": 0, "committee": {"members": {}, "threshold": 0.67}}' > ${ARTIFACTS_DIR_TEMP}/genesis.conway.spec.json && rm ${ARTIFACTS_DIR_TEMP}/genesis.conway.spec.json.tmp
100+
cat ${ARTIFACTS_DIR_TEMP}/genesis.conway.spec.json
101+
fi
102+
97103
cp $SCRIPT_DIRECTORY/configuration/byron/configuration.yaml "${ARTIFACTS_DIR_TEMP}/"
98104
$SED -i "${ARTIFACTS_DIR_TEMP}/configuration.yaml" \
99105
-e 's/Protocol: RealPBFT/Protocol: Cardano/' \

0 commit comments

Comments
 (0)