-
Notifications
You must be signed in to change notification settings - Fork 13
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: LiskArchive/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.