8000 [Consensus] Correctly calculates the required number of msgs by hyunsooda · Pull Request #1787 · klaytn/klaytn · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Aug 19, 2024. It is now read-only.

[Consensus] Correctly calculates the required number of msgs #1787

Merged
merged 1 commit into from
Feb 24, 2023

Conversation

hyunsooda
Copy link
Contributor

Proposed changes

The previous PR #1462 did not take into account the sub-group size (committee size), which resulted in only one committee seal being included in the proposal header when the committee size is 1, 2, and 3

As-Is: With the committee size 1,2, and 3, the block contains only one committee seal
To-be: With the committee size 1,2, and 3, the block should contain 1,2 and 3 committee seals, respectively.

Types of changes

Please put an x in the boxes related to your change.

  • Bugfix
  • New feature or enhancement
  • Others

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

  • I have read the CONTRIBUTING GUIDELINES doc
  • I have signed the CLA
  • Lint and unit tests pass locally with my changes ($ make test)
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)
  • Any dependent changes have been merged and published in downstream modules

Related issues

  • Please leave the issue numbers or links related to this PR here.

Further comments

If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you did and what alternatives you considered, etc...

Copy link
Member
@aidan-kwon aidan-kwon left a comment

Choose a reason for hiding this comment

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

Good finding! Thanks

@aidan-kwon aidan-kwon added this to the v1.10.2 milestone Feb 23, 2023
@aidan-kwon aidan-kwon added the need to merge Need to merge for the next time label Feb 23, 2023
@aidan-kwon aidan-kwon mentioned this pull request Feb 23, 2023
@jiseongnoh
Copy link
Contributor

Thank you for finding this issue.
One question: It seems that isSubset() is deprecated.
// TODO-Klaytn-RemoveLater We don't use this interface anymore. Eventually let's remove this function from ValidatorSet interface.
Can you try another way to check the current validator set? Thank you.

By the way, there should be no committee nor validator size less than 4.

@aidan-kwon
Copy link
Member

@hyunsooda I am gonna merge this PR

@aidan-kwon aidan-kwon merged commit 40fa268 into klaytn:dev Feb 24, 2023
@blukat29 blukat29 mentioned this pull request Mar 3, 2023
9 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
need to merge Need to merge for the next time
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0