Skip to content

yaci-store omits PlutusV2 cost model from /api/v1/epochs/parameters (yaci-cli 0.12.0-beta5) #185

Description

@nau

Summary

On bloxbean/yaci-cli:0.12.0-beta5 the bundled yaci-store's GET /api/v1/epochs/parameters returns cost models only for PlutusV1 (166 entries) and PlutusV3 (251 entries). PlutusV2 is missing entirely, even though the devnet node's Alonzo genesis contains both PlutusV1 and PlutusV2 cost models.

Reproduction

Start a devnet (same command yaci-cardano-test uses):

docker run -d --name yaci-devnet \
  -e yaci_cli_mode=native -e yaci_store_mode=native \
  -e conwayHardForkAtEpoch=1 -e shiftStartTimeBehind=true \
  -e yaci_store_enabled=true \
  --entrypoint /app/yaci-cli -p 8080:8080 \
  bloxbean/yaci-cli:0.12.0-beta5 \
  create-node -o --slot-length 1 --block-time 1 --start

Then:

curl -s localhost:8080/api/v1/epochs/parameters | jq '.cost_models | keys'

returns

["PlutusV1", "PlutusV3"]

while /clusters/nodes/default/node/genesis/alonzo-genesis.json inside the container defines cost models for both PlutusV1 and PlutusV2.

Effect

Any client that builds transactions from these protocol parameters (fee/ExUnits evaluation of PlutusV2 scripts, script integrity hash computation) fails because the PlutusV2 cost model is absent. For comparison, 0.10.0-preview2 returned PlutusV2 as expected.

Environment

  • bloxbean/yaci-cli:0.12.0-beta5, arm64, Docker Desktop on macOS

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions