cardano-node
cardano-node copied to clipboard
start-leadership: trace drep count and map size
Update TraceStartLeadershipCheckPlus with fields to track the DRep count and DRep map size. Update LedgerQueries with methods to extract the information to fill TraceStartLeadershipCheckPlus with. Update forgeTracerTransform to go about filling in all of the fields of TraceStartLeadershipCheckPlus with all the results from the accessors. DRep counts and map sizes get logged in the regularly-scheduled periodic traces in the final result.
Description
This adds DRep counts and map sizes to regular trace logging.
Checklist
- [x] Commit sequence broadly makes sense and commits have useful messages
- [x] New tests are added if needed and existing tests are updated. These may include:
- golden tests
- property tests
- roundtrip tests
- integration tests They're not needed for this. See Runnings tests for more details
- [x] Any changes are noted in the
CHANGELOG.mdfor affected package This is meant to be part of a larger group of changes vs. being a change to changelog in itself. That can be turned around if need be. - [x] The version bounds in
.cabalfiles are updated Mutatis mutandis for cabal versioning. - [ ] CI passes. See note on CI. The following CI checks are required:
- [x] Code is linted with
hlint. See.github/workflows/check-hlint.ymlto get thehlintversion - [x] Code is formatted with
stylish-haskell. See.github/workflows/stylish-haskell.ymlto get thestylish-haskellversion - [ ] Code builds on Linux, MacOS and Windows for
ghc-8.10.7andghc-9.2.7
- [x] Code is linted with
- [x] 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.