Skip to content
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

Remove unexpected block unwrapping #3455

Merged
merged 1 commit into from
Oct 11, 2024
Merged

Conversation

StephenButtolph
Copy link
Contributor

Why this should be merged

Currently we actually pass ApricotProposalBlock and ApricotStandardBlocks into state.AddStatelessBlock upon accept. This ends up not being a bug because the Banff.*Blocks serialized format is still returned from .Bytes() and the parsed version of the block is not cached.

However, this is a very weird flow that seems very close to causing a bug.

How this works

Passes the wrapped block types into the helper functions.

How this was tested

  • Added additional test coverage that fails against master.

@StephenButtolph StephenButtolph added the cleanup Code quality improvement label Oct 9, 2024
@StephenButtolph StephenButtolph added this to the v1.11.12 milestone Oct 9, 2024
@StephenButtolph StephenButtolph self-assigned this Oct 9, 2024
@StephenButtolph StephenButtolph added this pull request to the merge queue Oct 11, 2024
Merged via the queue into master with commit a7fe93b Oct 11, 2024
23 checks passed
@StephenButtolph StephenButtolph deleted the fix-block-passing branch October 11, 2024 19:23
yacovm pushed a commit to yacovm/avalanchego that referenced this pull request Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleanup Code quality improvement
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants