Skip to content

Commit 6fe30de

Browse files
committed
feat: support Cardano node '8.11.0-pre' in devnet
1 parent dc4ad17 commit 6fe30de

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
@@ -100,6 +100,12 @@ if [ $(version_lt "${CARDANO_NODE_VERSION_RELEASE}" "8.10.0") = "false" ]; then
100100
cat ${ARTIFACTS_DIR_TEMP}/genesis.conway.spec.json
101101
fi
102102

103+
if [ $(version_lt "${CARDANO_NODE_VERSION_RELEASE}" "8.11.0") = "false" ]; then
104+
# Fix >=8.11.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 "plutusV3CostModel" not found
105+
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 '. += {"plutusV3CostModel": []}' > ${ARTIFACTS_DIR_TEMP}/genesis.conway.spec.json && rm ${ARTIFACTS_DIR_TEMP}/genesis.conway.spec.json.tmp
106+
cat ${ARTIFACTS_DIR_TEMP}/genesis.conway.spec.json
107+
fi
108+
103109
cp $SCRIPT_DIRECTORY/configuration/byron/configuration.yaml "${ARTIFACTS_DIR_TEMP}/"
104110
$SED -i "${ARTIFACTS_DIR_TEMP}/configuration.yaml" \
105111
-e 's/Protocol: RealPBFT/Protocol: Cardano/' \

0 commit comments

Comments
 (0)