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

Update Channel Configuration to add new orgs to an existing channel. #2

Open
bdawada opened this issue Jul 25, 2017 · 1 comment
Open

Comments

@bdawada
Copy link
Contributor

bdawada commented Jul 25, 2017

No description provided.

@nishchal91
Copy link
Contributor

Reconfiguration is something that SDKs will hopefully expose in the future. However, for v1 this was not realistic to be completed. That is why configtxlator exists, to give a language neutral way to help SDK users to perform reconfiguration. Ideally, the application is storing the most up to date copy of the organization definition somewhere for each org, which can be used in the application to construct the change request.

At the moment ,the reconfiguration flow to add an org for v1 requires :

  1. Generating a genesis block containing the crypto material for your org in a similar manner as we did for configuration of 3 orgs network.
  2. Decode it using configtxlator and once decoded to JSON, copy the organization definition (which includes the MSP material as well as org policies) somewhere.
  3. Then to add an organization, simply follow the standard configtxlator reconfiguration flow as outlined in http://hyperledger-fabric.readthedocs.io/en/latest/configtxlator.html#reconfiguration-example , but use the JSON you saved to define the new org.

The standard usage is expected to be:

  1. SDK retrieves latest config
  2. configtxlator produces human readable version of config
  3. User or application edits the config
  4. configtxlator is used to compute config update representation of changes to the config
  5. SDK submits signs and submits config

Currently, we are able to compute config update from sdk , however the last step is recently updated as a part of sdk and will be included in v1.0.1. We are working on consuming the updated methods. You may expect fabric-sdk-java update in next build.

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

No branches or pull requests

2 participants