Skip to content

Conversation

tdb3
Copy link
Contributor

@tdb3 tdb3 commented Sep 21, 2024

Follow up from PR #30698 (comment #30698 (comment)).

mining_basic checks that a block with wall time is rejected when the previous block is MAX_FUTURE_BLOCK_TIME in the future, then checks that a block just beyond the MAX_TIMEWARP is also rejected.

This PR removes the first check, since they seem to be essentially checking the same thing twice.
Also incorporates the suggestion in #30698 (comment) to reuse block.

Removes extraneous wall time check since time
just beyond timewarp boundary is checked.
@DrahtBot
Copy link
Contributor

DrahtBot commented Sep 21, 2024

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Code Coverage

For detailed information about the code coverage, see the test coverage report.

Reviews

See the guideline for information on the review process.
A summary of reviews will appear here.

Conflicts

Reviewers, this pull request conflicts with the following ones:

  • #31725 (test: clarify timewarp grace period griefing attack by Sjors)

If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

@DrahtBot DrahtBot added the Tests label Sep 21, 2024
@tdb3 tdb3 changed the title test: simplify timewarp boundary test test: simplify timewarp test Sep 22, 2024
@tdb3
Copy link
Contributor Author

tdb3 commented Feb 3, 2025

Closed, as #31600 was merged

@tdb3 tdb3 closed this Feb 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants