-
Notifications
You must be signed in to change notification settings - Fork 31
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
fix: introduce VoterSetCounter
#347
Conversation
Introducing a concept "voter set counter" eases integration with `ostracon`'s `VoterSet`.
VoterSetCounter
VoterSetCounter
Now `VoteSetCounter` in HandleValidatorSignature indicates the real counted number, not a index-like number.
Check the liveness threshold only provided `VoterSetCounter > SignedBlocksWindow` meaning `VoterSetCounter >= SignedBlocksWindow + 1`.
Codecov Report
@@ Coverage Diff @@
## main #347 +/- ##
=======================================
Coverage ? 53.17%
=======================================
Files ? 642
Lines ? 67248
Branches ? 0
=======================================
Hits ? 35757
Misses ? 28547
Partials ? 2944 |
Log `VoterSetCounter` instead of `minVoterSetCount` which is constant.
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.
LGTM. It's very good job!
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.
LGTM
* chore: revert ostracon slashing changes (revert #347) * chore: revert block converting * chore: revert voter set comments * chore: update changelog * chore: update changelog category
Description
Introducing a concept "voter set counter" eases integration
with
ostracon
'sVoterSet
.Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.
docs/
) or specification (x/<module>/spec/
)godoc
comments.Unreleased
section inCHANGELOG.md
Files changed
in the Github PR explorerCodecov Report
in the comment section below once CI passes