-
Notifications
You must be signed in to change notification settings - Fork 722
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
Conversation
595b9fd
to
3669601
Compare
290d258
to
96051c8
Compare
then return (currentEvents ++ acc, StopFold) | ||
else return (currentEvents ++ acc, ContinueFold) | ||
where | ||
-- We end the fold on PoolReap ledger event |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
96051c8
to
1209e31
Compare
5e5ddf9
to
e8540c5
Compare
This is a simple demonstration as to how we can use `foldBlocks` with `cardano-testnet` for testing purposes
e8540c5
to
48c35be
Compare
<- cardanoTestnet fastTestnetOptions conf | ||
NodeRuntime{nodeSprocket} <- H.headM $ poolRuntime <$> poolNodes testnetRuntime | ||
let socketName' = IO.sprocketName nodeSprocket | ||
socketBase = IO.sprocketBase nodeSprocket -- /tmp |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
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
See Runnings tests for more details
CHANGELOG.md
for affected package.cabal
files are updatedhlint
. See.github/workflows/check-hlint.yml
to get thehlint
versionstylish-haskell
. See.github/workflows/stylish-haskell.yml
to get thestylish-haskell
versionghc-8.10.7
andghc-9.2.7
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.