-
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.
Check for duplicates when adding peers to the chain
Prior to this fix, it was possible to add duplicate peers to the chain. This fix now adds check to the addPeer method and throws a DuplicatePeer error if a peer with the same URL is already a member of the chain. Also added a test for adding multiple valid peers to the chain Fixes FAB-264 Change-Id: I575200325bf8e8aedc72e1f41419099689c3a6fc Signed-off-by: Gari Singh <gari.r.singh@gmail.com>
- Loading branch information
1 parent
dc2d339
commit 4203ea8
Showing
2 changed files
with
174 additions
and
76 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