PV11 cost-model governance bootstrap fails with "Plutus cost models update failed: null" (yaci-cli 0.12.0-beta5, -b1)

Aperta
#184 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
32/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
docker, java
Ambito
backend

Direzione di ricerca

Start with the LocalNodeService.updateCostModels path that the log message points to, and find where the plutus-costmodels-v11.json file is read and submitted as a governance proposal. Reproduce with the docker run command in the issue, then check whether GET /api/v1/epochs/parameters shows 350 PlutusV3 entries. Done means the bootstrap logs success and the PV11 cost model is applied, which needs Cardano governance knowledge.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Summary

On bloxbean/yaci-cli:0.12.0-beta5 (and 0.12.0-beta5-b1) the devnet node runs protocol version 11, but the automatic Plutus cost-model governance update fails on first run, so the chain keeps the pre-PV11 (251-entry) PlutusV3 cost model. The node then costs the missing PV11 entries (batch6 builtins, case on non-constructor values) as maxBound, so any PV11-compiled PlutusV3 script fails on-chain with a huge budget overspend, while off-chain evaluators that use proper PV11 costs consider the same transaction valid.

Reproduction

Equivalent to what yaci-cardano-test's YaciCardanoContainer runs:

docker run -d --name yaci-pv11 \
  -e yaci_cli_mode=native -e yaci_store_mode=native \
  -e conwayHardForkAtEpoch=1 -e shiftStartTimeBehind=true \
  -e yaci_store_enabled=true -e ogmios_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

Container log:

Submitting Plutus cost models governance proposal...
Using Plutus cost models file: plutus-costmodels-v11.json
Plutus cost models update failed: null
Plutus cost models governance proposal failed. Extended builtins may not be available.

(The message text suggests a NullPointerException inside LocalNodeService.updateCostModels.)

Afterwards GET /api/v1/epochs/parameters reports protocol_major_ver: 11 but the PlutusV3 cost model still has only 251 entries (the correct 350-entry model is present in the image at /app/config/plutus-costmodels-v11.json).

Effect

Submitting a transaction with a PV11-compiled PlutusV3 script (e.g. one using case on built-in values) fails with:

ConwayUtxowFailure (UtxoFailure (UtxosFailure (ValidationTagMismatch (IsValid True)
  (FailedUnexpectedly (PlutusFailure ...
The machine terminated part way through evaluation due to overspending the budget.
The budget when the machine terminated was:
({cpu: -9223372036842497312 | mem: -9223372036854734533})
The protocol version is: Version 11

So the devnet cannot execute scripts that target the van Rossem protocol version even though the node itself is PV11.

Environment

  • bloxbean/yaci-cli:0.12.0-beta5 and 0.12.0-beta5-b1, arm64, Docker Desktop on macOS
  • Observed both via yaci-cardano-test 0.1.0 (Testcontainers) and plain docker run as above
Lingua principale
Java
Stelle
70
Fork
21
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di bloxbean/yaci-devkit

Tutte le issue di bloxbean/yaci-devkit

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.