Skip to content

Comments

Properly handle messages sent by ourselves#166

Merged
jking-aus merged 2 commits intosigp:unstablefrom
dknopik:handle-self-messages
Mar 10, 2025
Merged

Properly handle messages sent by ourselves#166
jking-aus merged 2 commits intosigp:unstablefrom
dknopik:handle-self-messages

Conversation

@dknopik
Copy link
Member

@dknopik dknopik commented Mar 4, 2025

The QBFT instance needs to handle messages that it has sent. For this, it needs the signed message - for example, so that it can embed signed quorums in the round change messages.

This PR adds an optional callback mechanism to the common message sender. This is used in the QBFT instance to enqueue signed message for handling by the same instance.

While we're at it, we get rid of qbft::Message, which is no longer adequate as outgoing message type. The different variants are not treated differently at all in the current design, where we directly use SSV-specific messages.

@dknopik dknopik added the QBFT label Mar 4, 2025
@dknopik dknopik requested a review from jking-aus March 4, 2025 13:18
@dknopik dknopik added the ready-for-review This PR is ready to be reviewed label Mar 4, 2025
Copy link
Member

@jking-aus jking-aus left a comment

Choose a reason for hiding this comment

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

nice -- lgtm

@jking-aus jking-aus merged commit d23b7c5 into sigp:unstable Mar 10, 2025
10 checks passed
@dknopik dknopik deleted the handle-self-messages branch March 10, 2025 08:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

QBFT ready-for-review This PR is ready to be reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants