IntersectMBO / cardano-cli

This repository contains sources for the command-line interface (CLI) tool for interacting with the Cardano blockchain.
Apache License 2.0
33 stars 13 forks source link

New Plutus V2 cost model parameters are mandatory for alonzo genesis spec in map format #801

Closed carbolymer closed 13 hours ago

carbolymer commented 3 weeks ago

Description

New Plutus V2 cost model parameters are mandatory for alonzo genesis spec in map format. The issue does not occur for parameters in a list.

Steps to Reproduce

  1. Execute
    babbage genesis create-testnet-data --spec-alonzo ./alonzo-genesis.spec.json --out-dir out

    Using this alonzo genesis spec file: alonzo-genesis.spec.json This spec file contains only 175 PlutusV2 cost model parameters. After those changes:

Plutus V2 cost model has 185 parameters.

Expected result

The genesis gets created with old list of parameters.

Actual result

cardano-cli reports and error:

Command failed: genesis create-testnet-data  Error: Error while decoding Shelley genesis at: ./alonzo-genesis.spec.json Error: Error in $.costModels: Unrecognized cost model parameter name: "integerToByteString-cpu-arguments-c0"