-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update justification verification (#727)
# Description - JustificationVerifier.verify() method now has Justification as an input parameter and also executes block ancestry validation - JustificationVerifier.verify() method checks if there are more than 3 votes cast by single authority. The vote with the smaller block number is considered as the valid vote, other two are counted as equivocations. - Replace PreCommit with SignedVote in all places and delete PreCommit object Fixes: #655 & #648
- Loading branch information
1 parent
564abe9
commit e686679
Showing
13 changed files
with
159 additions
and
161 deletions.
There are no files selected for viewing
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
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
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
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
23 changes: 16 additions & 7 deletions
23
src/main/java/com/limechain/network/protocol/warp/dto/Justification.java
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
29 changes: 0 additions & 29 deletions
29
src/main/java/com/limechain/network/protocol/warp/dto/PreCommit.java
This file was deleted.
Oops, something went wrong.
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
29 changes: 0 additions & 29 deletions
29
src/main/java/com/limechain/network/protocol/warp/scale/reader/PreCommitReader.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.