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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add check on total weight and certificate threshold in verifyValidatorsUpdate
in LIP 0053
#488
Conversation
totalWeight = 0 | ||
for validator in newActiveValidators: | ||
# The bftWeight property of each element is a positive integer. | ||
if validator.bftWeight == 0: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This check is redundant in principle, but I kept it for symmetry with LIP0043. Let me know if you prefer to remove it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it is good to have it. Otherwise, there could maybe be the case that the total weight is 0.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
Issue created: LiskHQ/lisk-sdk#9039 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Editorial approval
verifyValidatorsUpdate
verifyValidatorsUpdate
in LIP 0053
No description provided.