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

add a test for index overflow with trees of different heights and refactor a bit #962

Merged

Conversation

DJViau
Copy link
Contributor

@DJViau DJViau commented Feb 2, 2023

Motivation

The desire for more clarity about the behavior of index overflows in bulk signatures.

Solution

Add a test that shows that an index of (index + (tree height ** 2)) wraps around to the value of the index for trees of different heights.

I'm still wary that I'm doing something wrong and getting a spurious passing outcome. Please review rigorously.

@DJViau DJViau marked this pull request as draft February 2, 2023 17:33
@codecov-commenter
Copy link

codecov-commenter commented Feb 2, 2023

Codecov Report

Base: 100.00% // Head: 100.00% // No change to project coverage 👍

Coverage data is based on head (c3c7227) compared to base (95212f3).
Patch has no changes to coverable lines.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #962   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           47        47           
  Lines         2661      2661           
  Branches       393       393           
=========================================
  Hits          2661      2661           
Flag Coverage Δ
foundry 77.81% <ø> (ø)
production 100.00% <ø> (ø)
reference 100.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@DJViau DJViau marked this pull request as ready for review February 2, 2023 19:16
@0age 0age merged commit 4f2210b into main Feb 2, 2023
@0age 0age deleted the dan/2023/02/add-bulk-sig-index-overflow-test-and-refactor branch February 2, 2023 20:19
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.

3 participants