Skip to content

consensus: integrate HeaderWithTime #6211

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

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft

Conversation

geo2a
Copy link
Contributor

@geo2a geo2a commented May 7, 2025

Description

The PR IntersectMBO/ouroboros-consensus#1288 has introduced the HeaderWithTime datatype which annotates block headers with their slot's RelativeTime.

This PR ensures the tracing system is modified to effectively ignore HeaderWithTime by
dropping the time annotations and using the underlying Header, keeping the current tracing behaviour unchanged.

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-9.6 and ghc-9.12
  • 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.

The tracing system is modified to effectively ignore `HeaderWithTime` by
dropping the time annotations and using the underlying `Header`, keeping the old
behaviour.
@geo2a geo2a force-pushed the geo2a/10.X-header-with-time branch from b22e356 to ff6ac6f Compare May 7, 2025 11:59
github-merge-queue bot pushed a commit to IntersectMBO/ouroboros-consensus that referenced this pull request May 8, 2025
This is a follow-up to #1288 that ensures

- do not expose `HeaderWithTime` in `TraceGDDEvent` via `GDDDebugInfo`
- do not store the chain fragment with `HeaderWithTime` in
`DensityBounds`

adding the "no changelog'' label, as the relevant changelog fragments
are already included into "main"

Draft PR to for integration with the node:
IntersectMBO/cardano-node#6211
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.

1 participant