我正在尝试使用first-network从fabric-samples创建一个应用程序通道。
configtx.yaml文件中创建Orderer的配置文件部分。crypto-config/ordererOrganizations/example.com/orderers/orderer.example.com/tls/server.crt <<:*ChannelDefault功能:<<:*ChannelCapabilities:<<:*OrdererDefaults OrdererType: etc草图EtcdRaft: Consenters:- orderer.example.com端口: 7050 ClientTLSCert:<< ServerTLSCert: crypto-config/ordererOrganizations/example.com/orderers/orderer.example.com/tls/server.crt -主机: orderer2.example.com端口: 8050 ClientTLSCert: crypto-config/ordererOrganizations/example.com/orderers/orderer2.example.com/tls/server.crt ServerTLSCert: crypto-config/ordererOrganizations/example.com/orderers/orderer2.example.com/tls/server.crt -主机: orderer3crypto-config/ordererOrganizations/example.com/orderers/orderer3.example.com/tls/server.crt端口: 9050 ClientTLSCert: ClientTLSCert ServerTLSCert: crypto-config/ordererOrganizations/example.com -主机: orderer4.example.com端口: 10050 ClientTLSCert: crypto-config/ordererOrganizations/example.com/orderers/orderer4.example.com/tls/server.crt ServerTLSCert: orderer.example.com:7050 - orderer2.example.com:8050 - orderer3.example.com:9050 - orderer4.example.com:10050组织:- *OrdererOrg功能:<<:*OrdererCapabilities应用程序:<<:*ApplicationDefaults组织:- <<:*OrdererOrg Consortium: SampleConsortium: ordering:-*Org2 1-*Org2 2
orderer, orderer2, orderer3。因此,我将应用程序通道的配置文件部分设置为如下(在configtx.yaml文件中):TwoOrgsChannel:财团: SampleConsortium <<:*ChannelDefault功能:<<:*ChannelCapabilities:<<:*OrdererDefaults OrdererType: etc草图EtcdRaft: Consenters:-主机: orderer.example.com端口: 7050 ClientTLSCert:<
byfn.sh脚本打开网络。但是,当我尝试使用cli环境从orderer4容器中获取应用程序通道配置块时,我仍然能够成功地做到这一点,并且在将其解码为JSON文件时,我可以看到,所有4个订单程序都是应用程序通道的 orderers 部分的一部分,并且每个orderer的地址都在orderer address 部分中。
那么,为什么应用程序通道不从前三个订单开始,尽管只给了那些作为衰老者的订单?
发布于 2020-04-07 13:25:48
通道创建命令中必须包含-channelCreateTxBaseProfile参数,参数的值将是名称(此处为SampleMultiNodeEtcdRaft)。
此外,试图执行peer channel create命令的标识必须满足以下ACL:/Channel/Orderer/ConsensusType (默认情况下设置为以下策略:/Channel/Application/Admins)。
https://stackoverflow.com/questions/61078815
复制相似问题