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

Fix a bug with odd-length resize calls #2550

Merged
merged 3 commits into from
Aug 2, 2024
Merged

Fix a bug with odd-length resize calls #2550

merged 3 commits into from
Aug 2, 2024

Conversation

eljobe
Copy link
Member

@eljobe eljobe commented Aug 2, 2024

The dirty_parents bitvec was not being resized correctly when the leaves were resized to an odd length.

This PR adds tests and the fix.

@eljobe eljobe self-assigned this Aug 2, 2024
@cla-bot cla-bot bot added the s Automatically added by the CLA bot if the creator of a PR is registered as having signed the CLA. label Aug 2, 2024
@PlasmaPower
Copy link
Collaborator

LGTM but I think you accidentally reverted the recent nitro-testnode submodule pin in this PR

The dirty_parents bitvec was not being resized correctly when the
leaves were resized to an odd length.

This PR adds tests and the fix.
@eljobe
Copy link
Member Author

eljobe commented Aug 2, 2024

Yup. I just force-pushed a different commit without the nitro-testnode submodule pin regression.

Copy link
Collaborator

@PlasmaPower PlasmaPower left a comment

Choose a reason for hiding this comment

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

LGTM

@eljobe eljobe merged commit 79fefd6 into master Aug 2, 2024
13 checks passed
@eljobe eljobe deleted the fix-merkle-dirt branch August 2, 2024 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
design-approved s Automatically added by the CLA bot if the creator of a PR is registered as having signed the CLA.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants