首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >为RAFT应用通道设置排序器子集

为RAFT应用通道设置排序器子集
EN

Stack Overflow用户
提问于 2020-04-07 11:19:31
回答 1查看 124关注 0票数 0

我正在尝试使用first-networkfabric-samples创建一个应用程序通道。

  1. ,我正在创建部署,以运行在RAFT集群中运行的4个排序节点。下面是用于在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

  • 现在我想创建一个应用程序通道,其中只有3个排序节点(在给定的4个节点中):orderer, orderer2, orderer3。因此,我将应用程序通道的配置文件部分设置为如下(在configtx.yaml文件中):

TwoOrgsChannel:财团: SampleConsortium <<:*ChannelDefault功能:<<:*ChannelCapabilities:<<:*OrdererDefaults OrdererType: etc草图EtcdRaft: Consenters:-主机: orderer.example.com端口: 7050 ClientTLSCert:<

  • I组织:-*功能:<<:*OrdererCapabilities应用程序:<<:*ApplicationDefa效果组织:- *Org2 1-*Org2 2功能:<<:<<:使用默认byfn.sh脚本打开网络。

但是,当我尝试使用cli环境从orderer4容器中获取应用程序通道配置块时,我仍然能够成功地做到这一点,并且在将其解码为JSON文件时,我可以看到,所有4个订单程序都是应用程序通道的 orderers 部分的一部分,并且每个orderer的地址都在orderer address 部分中。

那么,为什么应用程序通道不从前三个订单开始,尽管只给了那些作为衰老者的订单?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2020-04-07 13:25:48

通道创建命令中必须包含-channelCreateTxBaseProfile参数,参数的值将是名称(此处为SampleMultiNodeEtcdRaft)。

此外,试图执行peer channel create命令的标识必须满足以下ACL:/Channel/Orderer/ConsensusType (默认情况下设置为以下策略:/Channel/Application/Admins)。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/61078815

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档