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

[BUG] Get foldBlocks working with cardano-testnet #4624

Closed
eyeinsky opened this issue Nov 7, 2022 · 2 comments
Closed

[BUG] Get foldBlocks working with cardano-testnet #4624

eyeinsky opened this issue Nov 7, 2022 · 2 comments
Labels
comp: cardano-testnet Stale type: bug Something is not working user type: internal Created by an IOG employee

Comments

@eyeinsky
Copy link
Contributor

eyeinsky commented Nov 7, 2022

Internal

Area
Other: Marconi indexer

Summary
Get cardano-testnet running with the foldBlocks function in cardano-api.

Steps to reproduce
Steps to reproduce the behavior:

  1. Start Testnet.Cardano.testnet (renamed to cardanoTestnet on current master, but plutus-apps is on 1.35.3)
  2. start foldBlocks on the socket and with the configuration.yaml that testnet uses
  3. receive error Failed to read or parse the network config file: Error parsing node config: AesonException \"Error in $: key \\\"ByronGenesisHash\\\" not found\"

After adding the key ByronGenesisHash, then the next error is about missing ShelleyGenesisHash, after which the testnet doesn't start.

ByronGenesisHash was created using readGenesisData from cardano-ledger, ShelleyGenesisHash by implementing the hash creation part from cardano-api:Cardano.Api.LedgerState.

Expected behavior

foldBlocks would start receiving LedgerStates

System info (please complete the following information):

  • OS Name: NixOS
  • OS Version nixos-unstable
  • Node version: 1.35.3
  • CLI version: 1.35.3
@eyeinsky eyeinsky added the type: bug Something is not working label Nov 7, 2022
@dorin100 dorin100 added cardano-api Associated with the cardano-api module user type: internal Created by an IOG employee comp: cardano-testnet and removed cardano-api Associated with the cardano-api module labels Nov 8, 2022
@eyeinsky
Copy link
Contributor Author

eyeinsky commented Nov 8, 2022

@Jimbo4350 I've added a (failing) test case to test/Test/FoldBlocks.hs in this branch here: https://github.com/eyeinsky/cardano-node/tree/ml/foldblocks-test

@github-actions
Copy link

github-actions bot commented Dec 9, 2022

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 120 days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp: cardano-testnet Stale type: bug Something is not working user type: internal Created by an IOG employee
Projects
None yet
Development

No branches or pull requests

3 participants