我将开发超级分类账结构网络从1.4.1更新到1.4.4,不能再创建通道或与网络交互,因为在v1.4.1中没有失败的通道策略失败了
下面是当我试图通过节点sdk创建一个通道时所发生的事情
节点sdk中的错误
error: Status: BAD_REQUEST
Info: error validating channel creation transaction for new channel 'mychannel', could not successfully 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订单码头集装箱中的错误
[orderer.common.broadcast] ProcessMessage -> WARN 00e [channel: farm] Rejecting broadcast of config message from 172.18.0.1:40866 because of error: error validating channel creation transaction for new channel 'farm', 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密码配置部分
Application: &ApplicationDefaults
# Organizations is the list of orgs which are defined as participants on
# the application side of the network
Organizations:
# Policies defines the set of policies at this level of the config tree
# For Application policies, their canonical path is
# /Channel/Application/<PolicyName>
Policies:
Readers:
Type: ImplicitMeta
Rule: "ANY Readers"
Writers:
Type: ImplicitMeta
Rule: "ANY Writers"
Admins:
Type: ImplicitMeta
Rule: "MAJORITY Admins"发布于 2019-12-09 17:17:05
在使用用于v1.4.4的fabric样例configtx.yaml作为模板之后,我发现唯一的区别是这个Capabilities部分
Application: &ApplicationDefaults
# Organizations is the list of orgs which are defined as participants on
# the application side of the network
Organizations:
# Policies defines the set of policies at this level of the config tree
# For Application policies, their canonical path is
# /Channel/Application/<PolicyName>
Policies:
Readers:
Type: ImplicitMeta
Rule: "ANY Readers"
Writers:
Type: ImplicitMeta
Rule: "ANY Writers"
Admins:
Type: ImplicitMeta
Rule: "MAJORITY Admins"
Capabilities:
<<: *ApplicationCapabilities发布于 2019-12-05 11:14:05
我认为在1.4.3中出现了一些频道策略和信道能力的变化
我解决了这个问题,方法是从第一个网络获得1.4.3 fabric示例的configtx.yaml,并将我的更改(org名称等)应用到这个新的yaml文件中。然后产生一个新的成因块等。
https://stackoverflow.com/questions/59182124
复制相似问题