This repository has been archived by the owner on Sep 26, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NewRoundMessageValidator ignores Round Number when comparing blocks (#…
…523) * NewRoundMessageValidator ignores Round Number when comparing blocks NewRoundMessageValidator previously ensured the block in the newest PreparedCertificate was the same as that in the Proposal by comparing block hashes. However, the hash-function for received IBFT blocks includes round number - thus the blocks will never be deemed 'equal'. As such, the blocks must be compared using a hash function which ignores the round number - i.e. the OnChain function.
- Loading branch information
Showing
2 changed files
with
56 additions
and
49 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