gpt4 book ai didi

node.js - 升级 hyperledger fabric 网络后 channel 创建失败

转载 作者:太空宇宙 更新时间:2023-11-03 13:19:47 25 4
gpt4 key购买 nike

我将一个开发 hyperledger fabric 网络从 1.4.1 更新到 1.4.4,并且不能再创建 channel 或与网络交互,因为 channel 策略失败,而在 v1.4.1 中没有失败

以下是我尝试通过 Node sdk 创建 channel 时发生的情况

node 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 Docker 容器的错误

[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"

最佳答案

我认为 1.4.3 中有一些 channel 政策和 channel 能力变化

我通过从 first-network 1.4.3 fabric-samples 获取 configtx.yaml 并将我的更改(组织名称等)应用到新的 yaml 文件来解决这个问题。然后生成一个新的创世 block 等。

关于node.js - 升级 hyperledger fabric 网络后 channel 创建失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59182124/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com