-
Notifications
You must be signed in to change notification settings - Fork 8.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FAB-17177] Config block shouldn't verify itself in block replication (#…
…355) The cluster replication verifies blocks by pulling them in batches, and performs hash chain verification + verifies the signatures of the last block in the chain. It uses the bundle stored in the global config structures, but in case it comes across a config block in the middle of the batch, it switches to use a bundle constructed from that config block. However, if the config block is the last block in the batch - it accidentally verifies it twice: - once with the config block before it (as expected) - once with the config block itself (which is unexpected). This change set simply adds a check to see if the last block in the batch is a config block, and if so - doesn't verify it if it was already verified. Change-Id: Id123c36e445a21b3081273ef0395aae759162818 Signed-off-by: yacovm <yacovm@il.ibm.com>
- Loading branch information
Showing
3 changed files
with
64 additions
and
8 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