组织相关信息
排序节点组织名:OrgOrder
排序节点组织ID:OrgOrderMSP
排序节点根域名:wilsoner.com
排序节点二级域名: orderer.wilsoner.com
组织名字,组织ID,组织MSP
OrgOrder orderer.wilsoner.com
peer节点,组织个数2个,分别为go和cpp,每个组织分别有两个peer节点,用户个数为3
go组织
go节点组织名:OrgGo
go节点组织ID:OrgGoMSP
go节点根域名:wilsoner.com
go节点二级域名: orggo.wilsoner.com
go节点的锚节点:peer0.orggo.wilsoner.com
组织名字,组织ID,组织MSP
OrgOrder orderer.wilsoner.com
cpp组织
cpp节点组织名:OrgCpp
cpp节点组织ID:OrgCppMSP
cpp节点根域名:wilsoner.com
cpp节点二级域名: orgcpp.wilsoner.com
cpp节点的锚节点:peer0.orgcpp.wilsoner.com
组织名字,组织ID,组织MSP
OrgOrder orderer.wilsoner.com
组织名字,组织ID,组织MSP,锚节点
排序节点属性
共识机制
区块生成时机
profiles:
创始块信息
通道信息
MyGenesis
MyChannel
confixtxgen -profile MyGenesis -outputBlock genesis.block -channelID testchannel
confixtxgen -profile MyChannel -outputCreateChannelTx channel.tx -channelID testchannel
confixtxgen -profile MyChannel -outputAnchorPeersUpdate goAnchorPeer.tx -channelID testchannel -asOrg OrgGoMSP
confixtxgen -profile MyChannel -outputAnchorPeersUpdate cppAnchorPeer.tx -channelID testchannel -asOrg OrgCppMSP
docker-compose down -v
-v表示删除挂载卷
peer channel create -o orderer.wilsoner.com:7050 -c testchannel -f ./channel-artifacts/channel.tx --tls true --cafile $CAFILE
CAFILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/wilsoner.com/orderers/orderer.wilsoner.com/msp/tlscacerts/tlsca.wilsoner.com-cert.pem
wilson@wilson-virtual-machine:~$ docker exec -it cli bash
root@6e7a7472e0f7:/opt/gopath/src/github.com/hyperledger/fabric/peer# CAFILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/wilsoner.com/orderers/orderer.wilsoner.com/msp/tlscacerts/tlsca.wilsoner.com-cert.pem
root@6e7a7472e0f7:/opt/gopath/src/github.com/hyperledger/fabric/peer# peer create -o orderer.wilson.com:7050 -c testchannel -f ./channel-artifacts/channel.tx --tls true --cafile $CAFILE
Error: unknown command “create” for “peer”
Run ‘peer --help’ for usage.
root@6e7a7472e0f7:/opt/gopath/src/github.com/hyperledger/fabric/peer# peer channel create -o orderer.wilson.com:7050 -c testchannel -f ./channel-artifacts/channel.tx --tls true --cafile $CAFILE
Error: failed to create deliver client: orderer client failed to connect to orderer.wilson.com:7050: failed to create new connection: context deadline exceeded
https://www.lijiaocn.com/问题/2018/04/25/hyperledger-fabric-problem.html#创建channel时失败failed-to-reach-implicit-threshold-of-1-sub-policies-required-1-remaining