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

Adding a private data collection shall not influence all orgs #4565

Open
kaiknight opened this issue Dec 6, 2023 · 0 comments
Open

Adding a private data collection shall not influence all orgs #4565

kaiknight opened this issue Dec 6, 2023 · 0 comments

Comments

@kaiknight
Copy link
Contributor

kaiknight commented Dec 6, 2023

Current Status

We have a blockchain channel consisting of 100+ orgs. When adding a new private data collection in collection definition file, since the chain code source code is not changed, the CC version number is not increased, but since collection definition file is modified sequence number is increased. Currently, we've got to have all 100+ orgs to install and approve chain code with new collection definition file for the chain code to be effective. It's a lot of work for collaboration in a decentralized system like HLF.

Expected

Only orgs related to the newly added collection (e.g. orgs in policy item of the collection) in collection definition file should have to install and approve the chain code. All other orgs shall not be influenced by the newly created collection.

Example: If I add a new collection assetCollection as follows, it will only be recognized by Org1 and Org2. So only Org1 and Org2 will have to install and approve it. All other orgs don't have to realize assetCollection is added since they will not read or write to it, so all other orgs will not install and approve the chain code again with the updated collection definition file.

---- collection definition file ---
[
{
"name": "assetCollection",
"policy": "OR('Org1MSP.member', 'Org2MSP.member')",
"requiredPeerCount": 1,
"maxPeerCount": 1,
"blockToLive":1000000,
"memberOnlyRead": true,
"memberOnlyWrite": true
},
....
other existing collections
]

Solution

No response

Please let us know if you plan to work on this.

No response

@kaiknight kaiknight changed the title Adding collection in collection definition file shall not influence all orgs Adding a private data collection shall not influence all orgs Dec 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant