简体   繁体   中英

How to create a network of single organization in hyperledger fabric?

I have tried deploying a single organization in hypreledger fabric. First of all, i created a channel using the commands in hyperledger official documentation but i am not able to gain any appropriate help in building a single organization

If you're following first-network from the fabric-samples, then you have to modify a few things.

To create a single org network:

  • Update the docker-compose-cli . Remove all the org2 services and its references.

This will start a network with only one organization.

To create a channel with single org:

  • Update the configtx.yaml and add a profile with single org.
OneOrgChannel:
        Consortium: SampleConsortium
        Application:
            <<: *ApplicationDefaults
            Organizations:
                - *Org1
            Capabilities:
                <<: *ApplicationCapabilities
  • Create a new channel configuration channel.tx using OneOrgChannel profile.
export CHANNEL_NAME=mychannel  && ../bin/configtxgen -profile OneOrgChannel -outputCreateChannelTx ./channel-artifacts/channel.tx -channelID $CHANNEL_NAME
  • Create a new channel using the new channel configuration.

This channel is configured only for one organization. If you want another org in this channel then you have to update the channel configuration.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM