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

Đang mở
#185 3 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
45/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
docker, java
Lĩnh vực
api, backend

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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
Ngôn ngữ chính
Java
Star
70
Fork
21
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của bloxbean/yaci-devkit

Tất cả issue của bloxbean/yaci-devkit

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.