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

オープン
#185 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
静か
技術スタック
docker, java
領域
api, backend

調査の方向性

Start with the Alonzo genesis at /clusters/nodes/default/node/genesis/alonzo-genesis.json inside the devnet container, which has PlutusV1 and PlutusV2 cost models, and with the GET /api/v1/epochs/parameters response from yaci-store, which lists only PlutusV1 and PlutusV3. Trace where yaci-store reads and maps cost models from genesis to find where PlutusV2 is dropped. Done when the endpoint returns a PlutusV2 cost model that matches the genesis entries.

索引モデルが issue の本文から書いたものです。

説明

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
主要言語
Java
スター
70
フォーク
21
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

bloxbean/yaci-devkit のほかの issue

bloxbean/yaci-devkit の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。