hyperledger中基本网络搭建示例

组织相关信息
	排序节点组织名: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

在这里插入图片描述

在这里插入图片描述

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值