七、新组织加入channel
七、新组织申请添加到channel中¶
启动新组织节点,登录cli,加入到新channel:
docker-compose -f cfi.yaml up
docker exec -it cli bash
export ORDERER_CA=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/fabric.mbfa.cn/orderers/orderer0.fabric.mbfa.cn/msp/tlscacerts/tlsca.fabric.mbfa.cn-cert.pem
export CHANNEL_NAME=cfitestchannel
//从 orderer 中获取 channel 创世块配置
peer channel fetch 0 cfitestchannel.block -o orderer0.fabric.mbfa.cn:7050 -c $CHANNEL_NAME --cafile $ORDERER_CA
peer channel join -b cfitestchannel.block