-
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-2424] Enforce MSP channel validation in gossip
Before this commit, peers of an organization could publish assertions for having joined a channel, and it was enough for them to obtain blocks from peers in the same organization. This commit integrates gossip with the MSP method (VerifyByChannel) that consults the MSP policies whether a certain peer is indeed eligible for receiving blocks for the channel. I changed the gossip tests and the channel tests to mock the method, and also added a test in the channel test that checks that even when we query the membership of a channel, it also calls VerifyByChannel. I also had to make the MembershipStore thread safe for the channel Signed-off-by: Yacov Manevich <yacovm@il.ibm.com> Change-Id: I0fccf98080d7e72d05e7e762244fe366e9f6e32a
- Loading branch information
Showing
8 changed files
with
241 additions
and
86 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
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
Oops, something went wrong.