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

Process coordinator messages to duplicate state between multiple coordinators #40

Merged
merged 1 commit into from
Dec 19, 2023

Conversation

jferrant
Copy link
Contributor

@jferrant jferrant commented Dec 18, 2023

This enables signers and coordinators to all duplicate state by attempting to process received coordinator messages as they arrive (only processing them if they are in the expected state. otherwise the message is ignored.)

I also added verify_msg and tests for it to the network crate as it seems like it should live here and not in stacks signer itself.

TODO: if this is approved. I will go about the process of updating FIRE. But am wary to do so until this is given the green light. Also until we have a FIRE test in stacks-core to verfy I don't eff things up.

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.

Mostly looks good, but a few requests and questions before I'm ready to approve

src/net.rs Outdated Show resolved Hide resolved
src/net.rs Outdated Show resolved Hide resolved
src/net.rs Outdated Show resolved Hide resolved
src/state_machine/coordinator/frost.rs Show resolved Hide resolved
src/net.rs Show resolved Hide resolved
@jferrant jferrant requested a review from xoloki December 18, 2023 19:42
@jferrant jferrant force-pushed the feat/consistent-state-across-signers branch 3 times, most recently from e32a18d to 98ced98 Compare December 19, 2023 15:32
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.

So much better! One tiny comment but looks great now. Thanks!

src/net.rs Outdated Show resolved Hide resolved
@jferrant jferrant force-pushed the feat/consistent-state-across-signers branch from 98ced98 to 73087f7 Compare December 19, 2023 15:48
@jferrant jferrant merged commit 6cd8fde into main Dec 19, 2023
6 checks passed
@jferrant jferrant deleted the feat/consistent-state-across-signers branch December 19, 2023 15:54
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.

2 participants