Hyperledger Fabric-collections_config.json不尊重私有数据收集

时间:2018-12-15 01:34:22

标签: hyperledger-fabric hyperledger

[
{
  "name": "id1CollectionMarbles",
  "policy": "OR('Org1MSP.member', 'Org2MSP.member', 'Org3MSP.member', 'Org4MSP.member')",
  "requiredPeerCount": 0,
  "maxPeerCount": 3,
  "blockToLive":1000000,
  "memberOnlyRead": true
},
{
  "name": "id1CollectionMarblesPrivateDetails",
  "policy": "OR('Org1MSP.member', 'Org2MSP.member')",
  "requiredPeerCount": 0,
  "maxPeerCount": 3,
  "blockToLive":3,
  "memberOnlyRead": true
},
{
    "name": "id2CollectionMarbles",
    "policy": "OR('Org1MSP.member', 'Org2MSP.member', 'Org3MSP.member', 'Org4MSP.member')",
    "requiredPeerCount": 0,
    "maxPeerCount": 3,
    "blockToLive":1000000,
    "memberOnlyRead": true
 },
  {
    "name": "id2CollectionMarblesPrivateDetails",
    "policy": "OR('Org3MSP.member', 'Org2MSP.member')",
    "requiredPeerCount": 0,
    "maxPeerCount": 3,
    "blockToLive":3,
    "memberOnlyRead": true
  },
  {
    "name": "id3CollectionMarbles",
    "policy": "OR('Org1MSP.member', 'Org2MSP.member', 'Org3MSP.member', 'Org4MSP.member')",
    "requiredPeerCount": 0,
    "maxPeerCount": 3,
    "blockToLive":1000000,
    "memberOnlyRead": true
 },
  {
    "name": "id3CollectionMarblesPrivateDetails",
    "policy": "OR('Org3MSP.member', 'Org2MSP.member', 'Org4MSP.member')",
    "requiredPeerCount": 0,
    "maxPeerCount": 3,
    "blockToLive":3,
    "memberOnlyRead": true
}
]

这是我在链码实例化期间使用的collections_config.json。但是,当我从Org3或4 cli查询“ id1CollectionMarblesPrivateDetails”时,就会显示此集合中的数据。但这不应该。

请告知是否需要更多详细信息。

谢谢。

0 个答案:

没有答案