Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FAB-17279] Discovery supports collection level endorsement policies #445

Merged
merged 1 commit into from
Jan 2, 2020

Conversation

yacovm
Copy link
Contributor

@yacovm yacovm commented Jan 2, 2020

This change set adapts discovery to take into account collection level
endorsement policies.

Since discovery supports multiple endorsement policies in a single invocation
chain already (to support chaincode to chaincode writes), I changed the
method that retrieves a single endorsement policy by chaincode namespace
to retrieve a slice of several endorsement policies as well as extended the
parameter to take into account the collections of the said chaincode.

However, this change set has no effect on production since the discovery backend
needs to change in order to actually fetch the collection specific endorsement policies
if collections are specified.

Change-Id: Id93911c9560a9db8f896a06f71c2ac07e801784a
Signed-off-by: yacovm yacovm@il.ibm.com

This change set adapts discovery to take into account collection level
endorsement policies.

Since discovery supports multiple endorsement policies in a single invocation
chain already (to support chaincode to chaincode writes), I changed the
method that retrieves a single endorsement policy by chaincode namespace
to retrieve a slice of several endorsement policies as well as extended the
parameter to take into account the collections of the said chaincode.

However, this change set has no effect on production since the discovery backend
needs to change in order to actually fetch the collection specific endorsement policies
if collections are specified.

Change-Id: Id93911c9560a9db8f896a06f71c2ac07e801784a
Signed-off-by: yacovm <yacovm@il.ibm.com>
@C0rWin C0rWin merged commit 2a39779 into hyperledger:master Jan 2, 2020
@yacovm yacovm deleted the collectionEP branch February 9, 2021 10:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants