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 previous block for proof target. #2422

Merged
merged 4 commits into from
Apr 5, 2024

Conversation

d0cd
Copy link
Contributor

@d0cd d0cd commented Apr 4, 2024

Motivation

This PR adjusts proof targeting to use the previous block. This ensures that the targets are symmetric in block production and verification.

Test Plan

Added a test that checks that the cumulative proof target is calculated correctly and that block (with varying solutions at varying targets) is well-formed. This test triggers the failure, when the fix is removed.

This PR depends on #2421.

Base automatically changed from fix/tx-ordering to mainnet-staging April 5, 2024 03:54
@howardwu howardwu merged commit ed20562 into mainnet-staging Apr 5, 2024
78 of 80 checks passed
@howardwu howardwu deleted the fix/proof-target branch April 5, 2024 04:50
@howardwu howardwu changed the title Use previous block for proof target. [Fix] Use previous block for proof target. Apr 5, 2024
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.

None yet

3 participants