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

Feat/signers read stackerdb #4658

Merged
merged 14 commits into from
Apr 26, 2024
Merged

Feat/signers read stackerdb #4658

merged 14 commits into from
Apr 26, 2024

Conversation

jferrant
Copy link
Collaborator

@jferrant jferrant commented Apr 8, 2024

Closes #4636

Attempted to do for sign as well, but this would require substantial changes to the way a miner stores its messages as we require every single sign message to replicate state and miners overwrite their own messages as they use the same slot for everything. Sign rounds are also quite quick and a miner already has timeout logic in place for triggering a new sign request, so this is less of an issue anyway.

@jferrant jferrant requested a review from xoloki April 8, 2024 18:58
kantai
kantai previously approved these changes Apr 8, 2024
Copy link
Member

@kantai kantai left a comment

Choose a reason for hiding this comment

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

This code LGTM! I'm curious about the slow test, though. It doesn't seem like restarting the signer should require re-syncing the stacks-node.

@jferrant
Copy link
Collaborator Author

jferrant commented Apr 8, 2024

This code LGTM! I'm curious about the slow test, though. It doesn't seem like restarting the signer should require re-syncing the stacks-node.

Yeah, I am not 100% sure why this is the case. I actually can't merge this until #4654 is done. So will keep this as is for now and will look into it further when that PR is completed.

@jferrant jferrant marked this pull request as draft April 8, 2024 23:18
hstove
hstove previously approved these changes Apr 9, 2024
Copy link
Contributor

@hstove hstove left a comment

Choose a reason for hiding this comment

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

I know it's in draft, but I had already started a review, so I figured I'd just finish it.

stacks-signer/src/signer.rs Outdated Show resolved Hide resolved
testnet/stacks-node/src/tests/signer.rs Outdated Show resolved Hide resolved
testnet/stacks-node/src/tests/signer.rs Show resolved Hide resolved
@saralab saralab marked this pull request as ready for review April 16, 2024 02:54
@jferrant jferrant changed the base branch from next to develop April 17, 2024 18:18
@jferrant jferrant dismissed stale reviews from hstove and kantai April 17, 2024 18:18

The base branch was changed.

@jferrant jferrant requested review from hstove and kantai April 18, 2024 16:33
hstove
hstove previously approved these changes Apr 19, 2024
@jferrant jferrant marked this pull request as draft April 25, 2024 13:57
@jferrant jferrant marked this pull request as ready for review April 25, 2024 15:09
@jferrant jferrant requested a review from hstove April 25, 2024 15:10
@jferrant jferrant marked this pull request as draft April 25, 2024 17:25
@jferrant jferrant force-pushed the feat/signers-read-stackerdb branch from 32b548b to ff96f8c Compare April 25, 2024 18:44
@jferrant jferrant marked this pull request as ready for review April 25, 2024 18:44
Copy link
Collaborator

@xoloki xoloki left a comment

Choose a reason for hiding this comment

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

Looks great! So exciting to get this in, we've talked about it forever.

stacks-signer/src/signer.rs Show resolved Hide resolved
stacks-signer/src/signer.rs Show resolved Hide resolved
testnet/stacks-node/src/tests/signer.rs Show resolved Hide resolved
Copy link
Contributor

@hstove hstove left a comment

Choose a reason for hiding this comment

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

Nice job. A little nit regarding comments / logs, and that may be to me misunderstanding things. It shouldn't be blocking a merge, but a few more comments around why this state happened in refresh/update DKG would be help.

Also, I was going to comment "nice job on that test" but I already did 😂

stacks-signer/src/signer.rs Show resolved Hide resolved
@jferrant jferrant enabled auto-merge April 26, 2024 16:20
@jferrant jferrant added this pull request to the merge queue Apr 26, 2024
Merged via the queue into develop with commit 927e824 Apr 26, 2024
1 check passed
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.

[stacks-signer] Update signers to query stackerdb for DKG messages to prevent DKG stalls due to timing issues
5 participants