This repository has been archived by the owner on Jul 27, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 66
Problem: (CRO-455) Byzantine validators are not slashed #495
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tomtau
suggested changes
Oct 21, 2019
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, just one small style improvement -- clippy already warned about it in store_valid_genesis_state
, so could be good to refactor it.
- the punishment would ideally be proportional to the number of failing validators -- if that's a bit complex to do now, we can postpone from this PR, sketch out it first in https://github.com/crypto-com/chain-docs and later fix it.
@devashishdxt init config is currently feature-guarded, as it's not needed in tx-validation enclave etc., so compiling enclaves fails due to this:
|
leejw51crypto
approved these changes
Oct 21, 2019
calvinaco
approved these changes
Oct 21, 2019
Solution: Slash byzantine validators
Codecov Report
@@ Coverage Diff @@
## master #495 +/- ##
=========================================
+ Coverage 65.71% 66.1% +0.39%
=========================================
Files 117 120 +3
Lines 13602 13794 +192
=========================================
+ Hits 8938 9118 +180
- Misses 4664 4676 +12
|
bors r+ |
bors bot
added a commit
that referenced
this pull request
Oct 21, 2019
495: Problem: (CRO-455) Byzantine validators are not slashed r=tomtau a=devashishdxt Solution: Add byzantine validators to slashing queue and slash them when wait time passes Co-authored-by: Devashish Dixit <[email protected]>
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Solution: Add byzantine validators to slashing queue and slash them when wait time passes