当前位置:网站首页>4. fabric2.2 create and join channels (use the official demo)

4. fabric2.2 create and join channels (use the official demo)

2022-06-13 07:50:00 Mingshen special worry

We will build it step by step Fabric2.2 Version of blockchain network , from 0 Start setting up the server environment 、 To the operation official Demo colony 、 Create channels 、 Installation contract , And complete the development of agricultural product traceability project based on blockchain from zero . It is applicable to friends without blockchain development experience , If you have experience, please detour .

Follow the author , Do not omit every operation step . The blockchain cluster has been successfully deployed in the previous section , And analyze the startup script , In this section, learn how to create and join channels .

  1. View the current cluster status docker ps
     Insert picture description here
    fabric demo Default one orderer、 Two organizations 、 One node per organization , Currently, the cluster has only system channels , There are no other application channels .

  2. Channel concept
    The channel is used to realize the isolation of services in the blockchain network , One alliance has multiple channels , Each channel can represent a service , And corresponding to a set of account books , The members in the channel are business participants ( That is, the organizations in the Alliance ), An organization can join multiple channels .

  3. Create and join channels
    Get into /root/fabric/scripts/fabric-samples/test-network Catalog , perform ./network.sh createChannel command , Show successful execution , Finish creating channels and adding nodes to channels .

原网站

版权声明
本文为[Mingshen special worry]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202270545395407.html