You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

通道配置更新报错:/Channel/Admins策略未满足的问题咨询

Hyperledger Fabric通道配置更新签名策略问题

我正在构建一个允许节点在应用生命周期内随时加入的Hyperledger Fabric网络,首先需修改通道配置以变更配置更新的签名策略。我已按流程获取最新配置块、解码为JSON格式并完成编辑,修改后的配置如下:

{
  "channel_group": {
    "groups": {
      "Application": {
      },
      "Orderer": {
      }
    },
    "mod_policy": "Admins",
    "policies": {
      "Admins": {
        "mod_policy": "Admins",
        "policy": {
          "type": 3,
          "value": {
            "rule": "ANY",
            "sub_policy": "Admins"
          }
        },
        "version": "0"
      },
      "Readers": {
        "mod_policy": "Admins",
        "policy": {
          "type": 3,
          "value": {
            "rule": "ANY",
            "sub_policy": "Readers"
          }
        },
        "version": "0"
      },
      "Writers": {
        "mod_policy": "Admins",
        "policy": {
          "type": 3,
          "value": {
            "rule": "ANY",
            "sub_policy": "Writers"
          }
        },
        "version": "0"
      }
    },
    "values": {
    },
    "version": "0"
  },
  "sequence": "8"
}

我已将Admins策略的rule改为ANY,随后编码回信封并开始签名。当前网络有4个组织,默认签名规则为多数Admins签名:

  • 仅1-2个组织Admin签名提交时,报错如下,此报错符合预期:
Error: got unexpected status: BAD_REQUEST -- error applying config update to existing channel 'channel': error authorizing update: error validating DeltaSet: policy for [Policy] /Channel/Admins not satisfied: implicit policy evaluation failed - 0 sub-policies were satisfied, but this policy requires 2 of the 'Admins' sub-policies to be satisfied
  • 完成3个组织Admin签名后提交,仍报错:
Error: got unexpected status: BAD_REQUEST -- error applying config update to existing channel 'channel': error authorizing update: error validating DeltaSet: policy for [Policy] /Channel/Admins not satisfied: implicit policy evaluation failed - 1 sub-policies were satisfied, but this policy requires 2 of the 'Admins' sub-policies to be satisfied

我对此存在疑惑:第二个需要满足的sub_policy是什么?已完成所有组织Admin签名,还需谁来签名此通道配置更新?

内容的提问来源于stack exchange,提问作者Rafail K.

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.07 05:01:41