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!: use squareSizeUpperBound for worstCaseShareIndexes #48

Closed

Conversation

rootulp
Copy link
Collaborator

@rootulp rootulp commented Mar 5, 2024

Closes #47

This restores the behavior from celestia-app v1.x where square size upper bound is used to calculate worstCaseShareIndexes.

Testing

In celestia-app, TestMaxBlockSize flake is no longer observed

 go test -run TestIntegrationTestSuite/TestMaxBlockSize -count 5 -v

@rootulp rootulp self-assigned this Mar 5, 2024
@rootulp rootulp marked this pull request as ready for review March 5, 2024 16:54
@rootulp rootulp requested review from a team as code owners March 5, 2024 16:54
@rootulp
Copy link
Collaborator Author

rootulp commented Mar 5, 2024

Note to reviewers: we could add a unit test to this PR that includes a bad_block.json from a failing TestMaxBlockSize test case

Copy link
Contributor

@staheri14 staheri14 left a comment

Choose a reason for hiding this comment

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

LGTM!

@rootulp
Copy link
Collaborator Author

rootulp commented Mar 8, 2024

We could merge this as-is but I want @cmwaters 's review. I'm also nervous about regressions in this repo because this fix was added without a test that would fail if we ever revert this behavior 😞 I'll work on adding a test now.

@rootulp rootulp marked this pull request as draft March 8, 2024 18:48
@rootulp
Copy link
Collaborator Author

rootulp commented Mar 11, 2024

Closing in favor of #49

@rootulp rootulp closed this Mar 11, 2024
@rootulp rootulp deleted the rp/fix-worst-case-share-indexes branch March 11, 2024 17:37
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.

bug: worst case share indexes uses max square size
3 participants