PV11 cost-model governance bootstrap fails with "Plutus cost models update failed: null" (yaci-cli 0.12.0-beta5, -b1)
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 32/100
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-beta5and0.12.0-beta5-b1, arm64, Docker Desktop on macOS- Observed both via
yaci-cardano-test0.1.0 (Testcontainers) and plaindocker runas 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
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di bloxbean/yaci-devkit
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
bloxbean/yaci-devkit#87 · 1 commento ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
bloxbean/yaci-devkit#221 · 2 commenti · 1 reazione ·
-
npm wrapper: SIGTERM/SIGINT orphans yaci-cli and leaves a stale PID fileForse già presa @satran004 l’ha presa 17 giorni fa. Aperta
Difficoltà 3/5 Mezza giornata Idoneità per principianti 55/100
bloxbean/yaci-devkit#220 · 1 assegnatario ·
-
enhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 28/100
bloxbean/yaci-devkit#207 ·
-
enhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 30/100
bloxbean/yaci-devkit#197 ·
Tutte le issue di bloxbean/yaci-devkit
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
bloxbean/yaci-store#1445 ·
I maintainer di solito rispondono entro 1 giorno
-
图片灯箱过长的话底部carousel滑动没有惯性Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
-
Spare PermissionAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 63/100
Etar-Group/Etar-Calendar#2234 ·
I maintainer di solito rispondono entro 1 giorno
-
[BUG] MCP resources-as-tools drops invocation context when listing templatesForse già presa @CryoThrust l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
langchain4j/langchain4j#7320 ·
I maintainer di solito rispondono entro 1 giorno