Hyperledger fabric 如何在一个有两个组织的网络中有一个有一个组织的联盟?
我正在设置一个由两个组织(3个之后)组成的服务器,如以下链接所示: 但是,联合体不得包含两个组织(Org1和Org2),只能包含组织1(Org1),如图所示: 在我的configtx.yaml文件中,我将SampleConsortium值设置为:Hyperledger fabric 如何在一个有两个组织的网络中有一个有一个组织的联盟?,hyperledger-fabric,blockchain,hyperledger,Hyperledger Fabric,Blockchain,Hyperledger,我正在设置一个由两个组织(3个之后)组成的服务器,如以下链接所示: 但是,联合体不得包含两个组织(Org1和Org2),只能包含组织1(Org1),如图所示: 在我的configtx.yaml文件中,我将SampleConsortium值设置为: Profiles: TwoOrgsOrdererGenesis: <<: *ChannelDefaults Orderer: <<: *OrdererDefaul
Profiles:
TwoOrgsOrdererGenesis:
<<: *ChannelDefaults
Orderer:
<<: *OrdererDefaults
Organizations:
- *OrdererOrg
Capabilities:
<<: *OrdererCapabilities
Consortiums:
SampleConsortium:
Organizations:
- *Org1
# - *Org2
TwoOrgsChannel:
Consortium: SampleConsortium
<<: *ChannelDefaults
Application:
<<: *ApplicationDefaults
Organizations:
- *Org1
- *Org2
Capabilities:
<<: *ApplicationCapabilities
屏幕显示一个错误,告诉我:错误:获得意外状态:错误请求-试图包含不在联合体中的成员
你有没有想法通过在我的联盟中只有一个组织来建立我的渠道
提前非常感谢您的回答:)
PS:这是我第一个使用hyperledger fabric的项目,所以我对这项技术还是“新”的。然而,在我看来,似乎没有迹象表明一个财团不应该至少有两个组织。您必须从TwoOrgsChannel profile评论Org2。然后,您将能够创建我的频道一旦完成,您可以通过更新频道配置添加Org2,以了解更多详细信息,您可以参考阅读文档非常感谢,您的解决方案成功了。但是,我只能在我的频道中添加Org1组织。如果我在Org2行上注释,则会出现错误
Error: got unexpected status: BAD_REQUEST -- error validating channel creation transaction for new channel 'mychannel', could not succesfully apply update to template configuration: error authorizing update: error validating DeltaSet: policy for [Group] /Channel/Application not satisfied: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 1 of the 'Admins' sub-policies to be satisfied
而我的configtx.yaml文件如下所示:
Profiles:
TwoOrgsOrdererGenesis:
<<: *ChannelDefaults
Orderer:
<<: *OrdererDefaults
Organizations:
- *OrdererOrg
Capabilities:
<<: *OrdererCapabilities
Consortiums:
SampleConsortium:
Organizations:
- *Org1
- *Org2
TwoOrgsChannel:
Consortium: SampleConsortium
<<: *ChannelDefaults
Application:
<<: *ApplicationDefaults
Organizations:
# - *Org1
- *Org2
Capabilities:
<<: *ApplicationCapabilities
配置文件:
两个组织或地区:
从TworOrgshannel档案中删除Org2详细信息我自己解决了这个问题。我正在运行命令,通过peer0.org1(默认设置)创建通道!因此,我通过将用户peer0.org2!成功了!
Profiles:
TwoOrgsOrdererGenesis:
<<: *ChannelDefaults
Orderer:
<<: *OrdererDefaults
Organizations:
- *OrdererOrg
Capabilities:
<<: *OrdererCapabilities
Consortiums:
SampleConsortium:
Organizations:
- *Org1
- *Org2
TwoOrgsChannel:
Consortium: SampleConsortium
<<: *ChannelDefaults
Application:
<<: *ApplicationDefaults
Organizations:
# - *Org1
- *Org2
Capabilities:
<<: *ApplicationCapabilities