-
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.
Browse files
Browse the repository at this point in the history
…729) If there were not enough known eligible peers to meet a private data collection RequiredPeerCount, endorsement was succeeding rather than returning an error. This was a regression caused by FAB-15389 in v1.4.4. FAB-15389 shifted entirely to per-peer dissemination where required peers were tagged up front before dissemination, however there was no overall check to ensure that RequiredPeerCount was met. Prior to FAB-15389, the check was handled deeper in the gossip dissemination. Gossip still checks that each selected required peer disseminates the private data. This fix adds the overall RequiredPeerCount check for cases where there are not enough known eligible peers. Also, improvements are made to variable names, error messages, and comments to make dissemination code easier to understand. Signed-off-by: David Enyeart <enyeart@us.ibm.com>
- Loading branch information
Showing
6 changed files
with
116 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
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
18 changes: 18 additions & 0 deletions
18
...ation/pvtdata/testdata/collection_configs/collections_config8_high_requiredPeerCount.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
[ | ||
{ | ||
"name": "collectionMarbles", | ||
"policy": "OR('Org1MSP.member', 'Org2MSP.member')", | ||
"requiredPeerCount": 10, | ||
"maxPeerCount": 10, | ||
"blockToLive":1000000, | ||
"memberOnlyRead": false | ||
}, | ||
{ | ||
"name": "collectionMarblePrivateDetails", | ||
"policy": "OR('Org2MSP.member', 'Org3MSP.member')", | ||
"requiredPeerCount": 10, | ||
"maxPeerCount": 10, | ||
"blockToLive":1000000, | ||
"memberOnlyRead": false | ||
} | ||
] |
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