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

zcash_protocol: Remove impl {Add, Sub} for BlockHeight #1514

Merged
merged 1 commit into from
Aug 26, 2024

Conversation

nuttycom
Copy link
Contributor

@nuttycom nuttycom commented Aug 25, 2024

These operations are unused, and it does not make sense to add block heights (or to subtract two block heights returning a block height).

These operations are unused, and block heights form a vector space,
not a monoid.
@zancas
Copy link
Contributor

zancas commented Aug 25, 2024

@idky137 and @nachog00 please review this code

Copy link

codecov bot commented Aug 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 61.17%. Comparing base (4b70940) to head (8259825).
Report is 6 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1514   +/-   ##
=======================================
  Coverage   61.16%   61.17%           
=======================================
  Files         141      141           
  Lines       16649    16645    -4     
=======================================
- Hits        10184    10183    -1     
+ Misses       6465     6462    -3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@daira daira left a comment

Choose a reason for hiding this comment

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

utACK

@nuttycom nuttycom merged commit 21399ec into zcash:main Aug 26, 2024
27 checks passed
@nuttycom nuttycom deleted the fix/remove_blockheight_addition branch August 26, 2024 21:55
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