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

Initial ledger events integration into cardano-testnet #5523

Merged
merged 1 commit into from
Nov 27, 2023

Conversation

Jimbo4350
Copy link
Contributor

@Jimbo4350 Jimbo4350 commented Nov 1, 2023

Description

We introduce a sanity check test in cardano-testnet for foldBlocks. It also serves as a simple example as to how it should be integrated with property tests.

Depends on: IntersectMBO/cardano-api#350

Checklist

  • Commit sequence broadly makes sense and commits have useful messages
  • New tests are added if needed and existing tests are updated. These may include:
    • golden tests
    • property tests
    • roundtrip tests
    • integration tests
      See Runnings tests for more details
  • Any changes are noted in the CHANGELOG.md for affected package
  • The version bounds in .cabal files are updated
  • CI passes. See note on CI. The following CI checks are required:
    • Code is linted with hlint. See .github/workflows/check-hlint.yml to get the hlint version
    • Code is formatted with stylish-haskell. See .github/workflows/stylish-haskell.yml to get the stylish-haskell version
    • Code builds on Linux, MacOS and Windows for ghc-8.10.7 and ghc-9.2.7
  • Self-reviewed the diff

Note on CI

If your PR is from a fork, the necessary CI jobs won't trigger automatically for security reasons.
You will need to get someone with write privileges. Please contact IOG node developers to do this
for you.

@Jimbo4350 Jimbo4350 force-pushed the jordan/initial-ledger-events-integration branch 3 times, most recently from 595b9fd to 3669601 Compare November 1, 2023 15:36
@Jimbo4350 Jimbo4350 marked this pull request as ready for review November 1, 2023 15:38
@Jimbo4350 Jimbo4350 force-pushed the jordan/initial-ledger-events-integration branch 2 times, most recently from 290d258 to 96051c8 Compare November 1, 2023 16:33
then return (currentEvents ++ acc, StopFold)
else return (currentEvents ++ acc, ContinueFold)
where
-- We end the fold on PoolReap ledger event
Copy link
Contributor

@carbolymer carbolymer Nov 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that's not 100% true, because foldBlocks will continue iterating over knownLedgerStates' even when we return StopFold

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Jimbo4350 Jimbo4350 force-pushed the jordan/initial-ledger-events-integration branch from 96051c8 to 1209e31 Compare November 6, 2023 16:09
@Jimbo4350 Jimbo4350 force-pushed the jordan/initial-ledger-events-integration branch 7 times, most recently from 5e5ddf9 to e8540c5 Compare November 24, 2023 15:39
This is a simple demonstration as to how we can use `foldBlocks` with
`cardano-testnet` for testing purposes
@Jimbo4350 Jimbo4350 force-pushed the jordan/initial-ledger-events-integration branch from e8540c5 to 48c35be Compare November 24, 2023 19:58
<- cardanoTestnet fastTestnetOptions conf
NodeRuntime{nodeSprocket} <- H.headM $ poolRuntime <$> poolNodes testnetRuntime
let socketName' = IO.sprocketName nodeSprocket
socketBase = IO.sprocketBase nodeSprocket -- /tmp
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you still need the /tmp comment?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do to remind myself that the base is tmp

@Jimbo4350 Jimbo4350 added this pull request to the merge queue Nov 27, 2023
Merged via the queue into master with commit 3384053 Nov 27, 2023
21 checks passed
@Jimbo4350 Jimbo4350 deleted the jordan/initial-ledger-events-integration branch November 27, 2023 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants