Skip to content

Conversation

@crocodile-dentist
Copy link
Contributor

@crocodile-dentist crocodile-dentist commented Oct 2, 2025

Description

Using maybeToList will cause the accumulator to hold the trailing bytes twice.
This will result in the annotator grabbing the wrong
fragments in raw format. The messages will decode properly; however
if these raw fragments are forwarded to other peers, they will be
rejected and the remote will close the connection.

Formerly there were changes to testing code in this PR, but a different approach will be taken
after input-output-hk/typed-protocols#76

Checklist

Quality

  • Commit sequence makes sense and have useful messages, see ref.
  • New tests are added and existing tests are updated.
  • Self-reviewed the PR.

Maintenance

  • Linked an issue or added the PR to the current sprint of ouroboros-network project.
  • Added labels.
  • Updated changelog files.
  • The documentation has been properly updated, see ref.

@crocodile-dentist crocodile-dentist self-assigned this Oct 2, 2025
@crocodile-dentist crocodile-dentist requested a review from a team as a code owner October 2, 2025 14:27
@github-project-automation github-project-automation bot moved this to In Progress in Ouroboros Network Oct 2, 2025
@crocodile-dentist crocodile-dentist force-pushed the mw/bugfix-runannotateddecoder branch 3 times, most recently from 7659b22 to 7f73f2a Compare October 4, 2025 11:47
@crocodile-dentist crocodile-dentist requested a review from a team as a code owner October 4, 2025 11:47
Copy link
Collaborator

@coot coot left a comment

Choose a reason for hiding this comment

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

LGTM

@coot coot added typed-protocols Issues related to typed-protocols bug Something isn't working labels Oct 17, 2025
@coot coot changed the title driver: bugfix typed-protocol's annotated driver: bugfix Oct 17, 2025
@crocodile-dentist crocodile-dentist force-pushed the mw/bugfix-runannotateddecoder branch 2 times, most recently from e38360a to 24d28d8 Compare October 20, 2025 17:32
@coot coot moved this from In Progress to In Review in Ouroboros Network Oct 23, 2025
@coot coot added this pull request to the merge queue Oct 24, 2025
@crocodile-dentist crocodile-dentist removed this pull request from the merge queue due to a manual request Oct 24, 2025
Using maybeToList will cause the accumulator to hold the trailing
bytes twice. This will result in the annotator grabbing the wrong
fragments in raw format. The messages will decode properly; however
if these raw fragments are forwarded to other peers, they will be
rejected and the remote will close the connection.
@crocodile-dentist crocodile-dentist force-pushed the mw/bugfix-runannotateddecoder branch from 24d28d8 to c81eb70 Compare October 24, 2025 07:28
@crocodile-dentist crocodile-dentist added this pull request to the merge queue Oct 24, 2025
Merged via the queue into main with commit 5baa992 Oct 24, 2025
12 checks passed
@crocodile-dentist crocodile-dentist deleted the mw/bugfix-runannotateddecoder branch October 24, 2025 08:22
@github-project-automation github-project-automation bot moved this from In Review to Done in Ouroboros Network Oct 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working typed-protocols Issues related to typed-protocols

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants