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

Test: multiple miner nakamoto_integration test #5019

Merged
merged 4 commits into from
Jul 29, 2024

Conversation

kantai
Copy link
Member

@kantai kantai commented Jul 29, 2024

This PR adds a multiple miner integration test to the nakamoto_integrations suite. This test doesn't use the signer set (it uses the test signing channel). I'm planning on working on adding that to the signer integration test suite in a separate PR (this PR already includes a number of fixes).

As part of getting this integration test suite to work, this PR does the following:

  • test: add nakamoto_integration test with multiple miners (this test uses the blind signer test signing channel)
  • fix: increase the frequency of stackerdb sync, set a retry limit on stackerdb::sync pushchunks, and check for the presence of neighbors.
  • fix: nakamoto miner communicates over the correct miner slot for their block election (rather than searching by pubkey)
  • fix: neon miner does not submit block commits if the next burn block is in nakamoto
  • perf: nakamoto miner caches the reward set for their tenure

There's also a change to the output of v2/neighbors:

  • feat: update /v2/neighbors to use qualified contract identifier's ToString and parse() for JSON serialization

This makes that JSON output much more readable.

@kantai kantai requested a review from a team as a code owner July 29, 2024 14:42
jcnelson and others added 2 commits July 29, 2024 09:42
…chunks should not retry indefinitely; check for the absence of neighbors to sync to as a stopping condition for pushchunks
* test: add nakamoto_integration test with multiple miners (this test uses the blind signer test signing channel)

* fix: nakamoto miner communicates over the correct miner slot for their block election (rather than searching by pubkey)

* fix: neon miner does not submit block commits if the next burn block is in nakamoto

* feat: update `/v2/neighbors` to use qualified contract identifier's ToString and parse() for JSON serialization

* perf: nakamoto miner caches the reward set for their tenure
jcnelson
jcnelson previously approved these changes Jul 29, 2024
@saralab saralab requested a review from obycode July 29, 2024 15:07
Copy link
Contributor

@obycode obycode left a comment

Choose a reason for hiding this comment

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

lgtm

@kantai kantai requested a review from jcnelson July 29, 2024 17:57
@kantai kantai enabled auto-merge July 29, 2024 20:47
@kantai kantai added this pull request to the merge queue Jul 29, 2024
Merged via the queue into develop with commit ba2ac0b Jul 29, 2024
1 check passed
@blockstack-devops
Copy link
Contributor

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.

@stacks-network stacks-network locked as resolved and limited conversation to collaborators Oct 28, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants