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

Decided msg handling #139

Open
wants to merge 20 commits into
base: unstable
Choose a base branch
from
Open

Decided msg handling #139

wants to merge 20 commits into from

Conversation

Zacholme7
Copy link
Member

Issue Addressed

Other part of #103

Proposed Changes

A pretty simple implementation. If we recieve a decided message, which is identified by having > 1 signature, we can immediately complete our instance. All verification is to be done upstream. The only remaining part of this is to validate the signatures in #137

@Zacholme7 Zacholme7 added the QBFT label Feb 14, 2025
@Zacholme7 Zacholme7 marked this pull request as ready for review February 14, 2025 22:17
anchor/common/qbft/src/lib.rs Outdated Show resolved Hide resolved
anchor/common/qbft/src/lib.rs Outdated Show resolved Hide resolved
fn received_decided(&mut self, wrapped_msg: WrappedQbftMessage) {
// Make sure we have a quorum of signatures
if wrapped_msg.signed_message.operator_ids().len() >= self.config().quorum_size() {
self.received_decided(wrapped_msg);
Copy link
Member

Choose a reason for hiding this comment

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

Wait, this is a recursive call.

Copy link
Member Author

@Zacholme7 Zacholme7 Feb 18, 2025

Choose a reason for hiding this comment

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

Im not sure why this is here, will remove and fix the condition.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants