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

Bft messages have duplicate prepares in roundChange message #2449

Merged

Conversation

jframe
Copy link
Contributor

@jframe jframe commented Jun 18, 2021

PR description

In IBFT2 and QBFT the round change message could be created with duplicate prepares being included in the round change message. These messages are rejected as being invalid by Besu.

This fixes the equality and hashCode on the message so that we don't add duplicate messages.

Fixed Issue(s)

Changelog

jframe added 3 commits June 18, 2021 16:40
Signed-off-by: Jason Frame <jasonwframe@gmail.com>
Signed-off-by: Jason Frame <jasonwframe@gmail.com>
Signed-off-by: Jason Frame <jasonwframe@gmail.com>
@jframe jframe changed the title Qbft duplicate prepares in roundchange Bft messages have duplicate prepares in roundChange message Jun 21, 2021
Signed-off-by: Jason Frame <jasonwframe@gmail.com>
@jframe jframe marked this pull request as ready for review June 21, 2021 00:55
@jframe jframe requested a review from usmansaleem June 21, 2021 00:55
@jframe jframe added the TeamGroot GH issues worked on by Groot Team label Jun 21, 2021
Copy link
Member

@usmansaleem usmansaleem left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@usmansaleem usmansaleem left a comment

Choose a reason for hiding this comment

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

LGTM

@jframe jframe merged commit 5ab214e into hyperledger:master Jun 22, 2021
@jframe jframe deleted the qbft_duplicate_prepares_in_roundchange branch June 22, 2021 04:43
jframe added a commit to jframe/besu that referenced this pull request Jun 22, 2021
jframe added a commit that referenced this pull request Jun 22, 2021
) (#2459)

Signed-off-by: Jason Frame <jasonwframe@gmail.com>
jflo pushed a commit to jflo/besu that referenced this pull request Jun 25, 2021
RatanRSur pushed a commit to RatanRSur/besu that referenced this pull request Jul 8, 2021
…perledger#2449) (hyperledger#2459)

Signed-off-by: Jason Frame <jasonwframe@gmail.com>
Signed-off-by: Ratan Rai Sur <ratan.r.sur@gmail.com>
eum602 pushed a commit to lacchain/besu that referenced this pull request Nov 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
TeamGroot GH issues worked on by Groot Team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants