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/4976 signer set handoff #5037

Merged
merged 13 commits into from
Aug 7, 2024
Merged

Test/4976 signer set handoff #5037

merged 13 commits into from
Aug 7, 2024

Conversation

hstove
Copy link
Contributor

@hstove hstove commented Aug 1, 2024

This PR implements an integration test for handling signer set handoffs.

In this test, we boot up a signer test as usual with 5 signers. I've made modifications to only stack for one cycle in this test. 4 other signers are also spun up, but they aren't stacked yet. During the first Nakamoto cycle, the new signers are stacked. This integration test ensures that everything behaves smoothly when the new signer set is completely different than a previous one.

NB: I'm opening this in draft state, because I'm hitting some issues that I believe are bugs in the miner's reward set loading behavior. I'll leave comments on the relevant code.

@saralab saralab requested a review from kantai August 2, 2024 13:59
@hstove hstove marked this pull request as ready for review August 5, 2024 17:45
@hstove hstove requested review from a team as code owners August 5, 2024 17:45
@obycode obycode self-requested a review August 5, 2024 20:35
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.

This all seems to make sense to me. Just some minor comments.

stacks-signer/src/lib.rs Outdated Show resolved Hide resolved
testnet/stacks-node/src/tests/signer/v0.rs Outdated Show resolved Hide resolved
kantai
kantai previously approved these changes Aug 6, 2024
obycode
obycode previously approved these changes Aug 7, 2024
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!

@hstove hstove dismissed stale reviews from obycode and kantai via 0bedcea August 7, 2024 14:32
@hstove hstove requested review from kantai and obycode August 7, 2024 14:41
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.

👍

@hstove hstove enabled auto-merge August 7, 2024 14:43
@hstove hstove added this pull request to the merge queue Aug 7, 2024
Merged via the queue into develop with commit 05280cd Aug 7, 2024
1 check passed
@hstove hstove linked an issue Aug 8, 2024 that may be closed by this pull request
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.

[testing] signer set handoff test
4 participants