Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for new cost models representation in Alonzo genesis file #1392

Closed
mkoura opened this issue Apr 17, 2023 · 1 comment
Closed
Labels
conway Conway integration blockers or reauested feautures integration

Comments

@mkoura
Copy link
Contributor

mkoura commented Apr 17, 2023

OS
Your OS: Fedora 37

Versions
The db-sync version: d062074, 13.1.0.2
PostgreSQL version: 14.6

Build/Install Method
The method you use to build or install cardano-db-sync: nix build

Run method
The method you used to run cardano-db-sync (eg Nix/Docker/systemd/none): none

Problem Report
In PR IntersectMBO/cardano-node#5013, the cost model format changed to list, like

{
  "costModels": {
    "PlutusV1": [
      205665,
      812,
      1,
      1,
      1000,
      ...

db-sync currently don't support this new format, and fails to start with:

Failed reading Alonzo genesis file "./state-cluster0/shelley/genesis.alonzo.json": There was an error parsing the genesis file: ./state-cluster0/shelley/genesis.alonzo.json Error: Error in $.costModels.PlutusV1: parsing Map ~Text failed, expected Object, but encountered Array

@mkoura mkoura added the bug Something isn't working label Apr 17, 2023
@kderme kderme added integration conway Conway integration blockers or reauested feautures and removed bug Something isn't working labels Apr 19, 2023
@kderme
Copy link
Contributor

kderme commented May 17, 2023

Fixed with #1403

@kderme kderme closed this as completed May 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conway Conway integration blockers or reauested feautures integration
Projects
None yet
Development

No branches or pull requests

2 participants