cardano-node icon indicating copy to clipboard operation
cardano-node copied to clipboard

start-leadership: trace drep count and map size

Open NadiaYvette opened this issue 1 year ago • 0 comments

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.md for 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 .cabal files 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.yml to get the hlint version
    • [x] 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
  • [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.

NadiaYvette avatar Apr 23 '24 16:04 NadiaYvette