如何向 hyperledger-iroha 上现有区块链网络的帐户添加权限 can_get_all_acc_detail?

How to add permission can_get_all_acc_detail to an account of existing blockchain network on hyperledger-iroha?

我想添加帐户,其中有一些所有用户都可读的信息。根据文档,用户需要具有权限 can_get_all_acc_detail. So I'm trying to add those with creating new role:

tx = self.iroha.transaction([
    self.iroha.command('CreateRole', role_name='info', permissions=[primitive_pb2.can_get_all_acc_detail])
])
tx = IrohaCrypto.sign_transaction(tx, account_private_key)
net.send_tx(tx)

不幸的是,发送交易后我看到状态:

status_name:ENOUGH_SIGNATURES_COLLECTED, status_code:9, error_code:0(OK)

但是超时需要 5 分钟。

我注意到交易 json 嵌入权限的方式与通用块不同:

payload {
  reduced_payload {
    commands {
      create_role {
        role_name: "info_account"
        permissions: can_get_all_acc_detail
      }
    }
    creator_account_id: "admin@example"
    created_time: 1589408498074
    quorum: 1
  }
}
signatures {
  public_key: "92f9f9e10ce34905636faff41404913802dfce9cd8c00e7879e8a72085309f4f"
  signature: "568b69348aa0e9360ea1293efd895233cb5a211409067776a36e6647b973280d2d0d97a9146144b9894faeca572d240988976f0ed224c858664e76416a138901"
}

在genesis.block中比较是:

{
    "createRole": {
        "roleName": "money_creator",
        "permissions": [
            "can_add_asset_qty",
            "can_create_asset",
            "can_receive",
            "can_transfer"
        ]
    }
},

我使用的是 iroha 版本 1.1.3(但也在 1.1.1 上测试过),pythoniroha sdh 版本是 0.0.5.5。

您执行'Create Role'命令的账号是否有"can_create_role"权限?