-
Notifications
You must be signed in to change notification settings - Fork 677
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
Nakamoto-Node: Support for interim block mining #4187
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## next #4187 +/- ##
===========================================
- Coverage 85.08% 65.52% -19.57%
===========================================
Files 429 429
Lines 302009 302067 +58
===========================================
- Hits 256976 197933 -59043
- Misses 45033 104134 +59101 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, provided that all tests pass. Thanks for the NakamotoBlockBuilder
cleanup!
The code coverage drop seems to be due to tests which aren't run on PRs, but are run on the base branch (e.g., the epoch tests). The patch coverage is 90%. |
…check to stackslib::miner assembly. chore: fix typo
24a4cda
to
3cef3b4
Compare
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Description
This PR adds support to the nakamoto node for interim block mining (i.e., blocks within the current tenure) with a configurable wait time between such blocks. This PR also refactors the
chainstate::nakamoto::miner
module to match the actual usage of the miner interfaces, and moving theTestPeer
specific method out intoTestPeer
itself.This adds a new
nakamoto_integration
test which mines 10 nakamoto tenures, each with 2 blocks in the tenure.