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 calls to next_diff() in tests to use next height correctly #3501

Merged
merged 1 commit into from
Nov 25, 2020

Conversation

antiochp
Copy link
Member

@antiochp antiochp commented Nov 25, 2020

Related #3477

We had some test failures related to bad (legacy) test setup code.
We need to use the correct next height when determining the next difficulty, when building blocks in the tests.

Also had some tests just using Difficulty::min_dma() but this does not work beyond HF4.
So reworked those tests to use next_header_info.difficulty.

@antiochp antiochp requested a review from tromp November 25, 2020 11:58
Copy link
Contributor

@tromp tromp left a comment

Choose a reason for hiding this comment

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

good fixes; would be better still to have Block::new accept both difficulty and secondary_scale

@antiochp antiochp merged commit 6e73e00 into mimblewimble:master Nov 25, 2020
@antiochp antiochp deleted the fix_daa_test_failure branch November 25, 2020 12:47
@antiochp antiochp mentioned this pull request Nov 26, 2020
bayk added a commit to mwcproject/mwc-node that referenced this pull request Jun 8, 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.

2 participants