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

feat(header): add is_zero_difficulty util function for POS #5966

Merged
merged 3 commits into from
Jan 7, 2024

Conversation

tcoratger
Copy link
Contributor

Description

Adds a utility function is_zero_difficulty within the Header module to facilitate checking for zero difficulty, aligning with Proof-of-Stake (POS) headers.

Details

  • Introduces the is_zero_difficulty function within the Header module.
  • Validates if the block's difficulty is set to zero, corresponding to the POS header specifications.

Copy link
Collaborator

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

reasonable!

@mattsse mattsse enabled auto-merge January 7, 2024 11:20
@mattsse mattsse added this pull request to the merge queue Jan 7, 2024
@mattsse mattsse added the C-debt Refactor of code section that is hard to understand or maintain label Jan 7, 2024
Merged via the queue into paradigmxyz:main with commit 3038c3c Jan 7, 2024
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-debt Refactor of code section that is hard to understand or maintain
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants