AWS 管理的区块链超级账本结构如何加入开源超级账本结构通道和查询链码?

时间:2021-05-11 03:23:50

标签: amazon-web-services hyperledger-fabric hyperledger

我是 Hyperledger Fabric 的初学者。

我想通过开源超级账本结构通道加入 AWS 托管的区块链超级账本结构。

我使用 admin-msp 目录作为 aws-org configtx.yaml 的 msp 目录。(admin-msp 我从 aws 托管区块链的步骤Step 4.2: Enroll the Administrative User 中获得)

我在超级账本结构文档中关注 Bring Org3 into the Channel Manually

我可以按照这些步骤加入 AWS 托管区块链对等通道,但是当我在 AWS 对等节点上安装链代码时,我无法从通道查询链代码。 这是我查询链码时的错误。

Error: error endorsing query: rpc error: code = Unknown desc = access denied: channel [mychannel] creator org [{aws member id}] - proposal response: <nil>

这是我的 aws-org configtx.yaml

Organizations:
    - &aws-org

        Name: {aws member id}

        ID: {aws member id}

        MSPDir: ./admin-msp

        Policies:
            Readers:
                Type: Signature
                Rule: "OR('{aws member id}.admin', '{aws member id}.peer', '{aws member id}.client')"
            Writers:
                Type: Signature
                Rule: "OR('{aws member id}.admin', '{aws member id}.client')"
            Admins:
                Type: Signature
                Rule: "OR('{aws member id}.admin')"
            Endorsement:
                Type: Signature
                Rule: "OR('{aws member id}.peer')"

0 个答案:

没有答案