-
Notifications
You must be signed in to change notification settings - Fork 678
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/stackerdb miners contract #4188
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## next #4188 +/- ##
===========================================
- Coverage 83.01% 54.82% -28.20%
===========================================
Files 430 430
Lines 305627 304081 -1546
===========================================
- Hits 253730 166699 -87031
- Misses 51897 137382 +85485 ☔ View full report in Codecov by Sentry. |
630fed8
to
2f34831
Compare
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.
This mostly LGTM, just a few comments and questions.
01bad91
to
8f78e89
Compare
abbac79
to
2967c99
Compare
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.
This overall LGTM. Thanks for taking it over @jferrant! Just a couple comments need to be addressed and then I'll approve.
721fb8b
to
d9c3896
Compare
…lock Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
…s instance Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
…in view Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
…rivate key Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
…he block hash matches between observed and proposed blocks Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
eb8adb7
to
c3d3884
Compare
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
b4e3e33
to
4d111e4
Compare
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
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.
Overall, LGTM, I just have one unresolved comment about the .miners
contract. It seems like it doesn't actually need to exist, and would prefer to just remove it in that case.
Well, since I'm the one who opened it, I can't approve it, but LGTM. Thanks for carrying this over the finish line @jferrant! Just a couple comments to address before merging 🙏 |
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
Signed-off-by: Jacinta Ferrant <jacinta@trustmachines.co>
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, appreciate you for getting this across the line @jferrant!
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. |
Implements #4018, with the caveats listed in #4018 (namely, the
.miners
StackerDBConfig
structure must be synthesized directly from chainstate due to a chicken-and-egg problem of needing.miners
to reflect the latest sortition state before any blocks have been processed).The code here is mostly complete and has some minimal unit tests. The following features need to be added:
.miners
contract. There's already a helper method inNakamotoBlockBuilder
that will generate the chunk.The following test coverage needs to be added:
TestPeer
-based unit test to verify that theStackerDBConfig
for.miners
is correctly synthesized after processing each Bitcoin blockTestPeer
-based unit test to verify that two nodes can be instantiated, which both track.miners
, and aStackerDBChunkData
post to one will show up on the other (i.e. this shows that StackerDB can propagateNakamotoBlock
s for miners)NakamotoBlock
to the.miners
contractNakamotoBlock
: will be done in another PR once stacks signer begins to process proposed blocksAs discussed earlier, I'm handing this off to @jferrant so I can focus on building out the Nakamoto p2p layer.
Closes #4018
Closes #3931