Hyperledger fabric 在hyperledger fabric 2.0中,是否可以在两个不同的通道中创建和部署链码,每个通道包含不同的组织?
我一直试图建立两个渠道,孤立两个组织;但是,当我将在每个通道中部署链码时,它需要得到另一通道中包含的组织的认可。显然,这是可能的,这是Hyperledger结构中使用通道的主要原因 你可以在Hyperledger Fabric的文档中找到 链接: 您可以在下面的链接中找到关于如何实现该概念的教程 链接: 您还可以检查configtx.yaml文件中的“Profiles”,为两个通道定义单独的联合体,还可以尝试使用两个不同的链码名称 简介:Hyperledger fabric 在hyperledger fabric 2.0中,是否可以在两个不同的通道中创建和部署链码,每个通道包含不同的组织?,hyperledger-fabric,Hyperledger Fabric,我一直试图建立两个渠道,孤立两个组织;但是,当我将在每个通道中部署链码时,它需要得到另一通道中包含的组织的认可。显然,这是可能的,这是Hyperledger结构中使用通道的主要原因 你可以在Hyperledger Fabric的文档中找到 链接: 您可以在下面的链接中找到关于如何实现该概念的教程 链接: 您还可以检查configtx.yaml文件中的“Profiles”,为两个通道定义单独的联合体,还可以尝试使用两个不同的链码名称 简介: OrgsChannel1: Consortium
OrgsChannel1:
Consortium: Consortium1
<<: *ChannelDefaults
Application:
<<: *ApplicationDefaults
Organizations:
- *Org1
- *Org2
Capabilities:
<<: *ApplicationCapabilities
OrgsChannel2:
Consortium: Consortium2
<<: *ChannelDefaults
Application:
<<: *ApplicationDefaults
Organizations:
- *Org3
- *Org4
Capabilities:
<<: *ApplicationCapabilities
SampleMultiNodeEtcdRaft:
<<: *ChannelDefaults
Capabilities:
<<: *ChannelCapabilities
Orderer:
<<: *OrdererDefaults
OrdererType: etcdraft
EtcdRaft:
Consenters:
- Host: orderer.example.com
Port: 7050
ClientTLSCert: crypto-config/ordererOrganizations/example.com/orderers/orderer.example.com/tls/server.crt
ServerTLSCert: crypto-config/ordererOrganizations/example.com/orderers/orderer.example.com/tls/server.crt
- Host: orderer2.example.com
Port: 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
- Host: orderer3.example.com
Port: 9050
ClientTLSCert: crypto-config/ordererOrganizations/example.com/orderers/orderer3.example.com/tls/server.crt
ServerTLSCert: crypto-config/ordererOrganizations/example.com/orderers/orderer3.example.com/tls/server.crt
- Host: orderer4.example.com
Port: 10050
ClientTLSCert: crypto-config/ordererOrganizations/example.com/orderers/orderer4.example.com/tls/server.crt
ServerTLSCert: crypto-config/ordererOrganizations/example.com/orderers/orderer4.example.com/tls/server.crt
- Host: orderer5.example.com
Port: 11050
ClientTLSCert: crypto-config/ordererOrganizations/example.com/orderers/orderer5.example.com/tls/server.crt
ServerTLSCert: crypto-config/ordererOrganizations/example.com/orderers/orderer5.example.com/tls/server.crt
Addresses:
- orderer.example.com:7050
- orderer2.example.com:8050
- orderer3.example.com:9050
- orderer4.example.com:10050
- orderer5.example.com:11050
Organizations:
- *OrdererOrg
Capabilities:
<<: *OrdererCapabilities
Application:
<<: *ApplicationDefaults
Organizations:
- <<: *OrdererOrg
Consortiums:
Consortium1:
Organizations:
- *Org1
- *Org2
Consortium2:
Organizations:
- *Org3
- *Org4
OrgsChannel1:
财团:财团1
请提供configtx.yaml
content非常感谢您的回答,但是,我发现这些网络总是至少有两个组织通过对等方共享一个频道。例如,我想隔离第一频道中的OrG1和Org2,然后隔离第二频道中的Org3和Org4。例如,当我尝试在通道二上部署链码时,它需要Org1和ORG2的认可,但由于它们是通道一的一部分,我无法这样做。您还可以检查configtx.yaml文件中的“Profiles”,为两个通道定义单独的联合体,还可以尝试使用两个不同的链码名称,如mycc1、mycc2