From 826bd8ea9dddb5bf6851568bf616c0a0b481bea7 Mon Sep 17 00:00:00 2001 From: Baohua Yang Date: Tue, 9 Oct 2018 14:02:33 +0800 Subject: [PATCH] Fix convert to json issue --- .../channel-artifacts/businesschannel.tx.json | 143 ++++++++++++++++++ .../latest/scripts/gen_channelArtifacts.sh | 2 +- .../channel-artifacts/businesschannel.tx.json | 143 ++++++++++++++++++ 3 files changed, 287 insertions(+), 1 deletion(-) diff --git a/hyperledger_fabric/latest/kafka/channel-artifacts/businesschannel.tx.json b/hyperledger_fabric/latest/kafka/channel-artifacts/businesschannel.tx.json index e69de29b..87d1529d 100644 --- a/hyperledger_fabric/latest/kafka/channel-artifacts/businesschannel.tx.json +++ b/hyperledger_fabric/latest/kafka/channel-artifacts/businesschannel.tx.json @@ -0,0 +1,143 @@ +{ + "payload": { + "data": { + "config_update": { + "channel_id": "businesschannel", + "isolated_data": {}, + "read_set": { + "groups": { + "Application": { + "groups": { + "Org1MSP": { + "groups": {}, + "mod_policy": "", + "policies": {}, + "values": {}, + "version": "0" + }, + "Org2MSP": { + "groups": {}, + "mod_policy": "", + "policies": {}, + "values": {}, + "version": "0" + } + }, + "mod_policy": "", + "policies": {}, + "values": {}, + "version": "0" + } + }, + "mod_policy": "", + "policies": {}, + "values": { + "Consortium": { + "mod_policy": "", + "value": null, + "version": "0" + } + }, + "version": "0" + }, + "write_set": { + "groups": { + "Application": { + "groups": { + "Org1MSP": { + "groups": {}, + "mod_policy": "", + "policies": {}, + "values": {}, + "version": "0" + }, + "Org2MSP": { + "groups": {}, + "mod_policy": "", + "policies": {}, + "values": {}, + "version": "0" + } + }, + "mod_policy": "Admins", + "policies": { + "Admins": { + "mod_policy": "Admins", + "policy": { + "type": 3, + "value": { + "rule": "MAJORITY", + "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": { + "Capabilities": { + "mod_policy": "Admins", + "value": { + "capabilities": { + "V1_2": {} + } + }, + "version": "0" + } + }, + "version": "1" + } + }, + "mod_policy": "", + "policies": {}, + "values": { + "Consortium": { + "mod_policy": "", + "value": { + "name": "SampleConsortium" + }, + "version": "0" + } + }, + "version": "0" + } + }, + "signatures": [] + }, + "header": { + "channel_header": { + "channel_id": "businesschannel", + "epoch": "0", + "extension": null, + "timestamp": "2018-09-28T08:19:49Z", + "tls_cert_hash": null, + "tx_id": "", + "type": 2, + "version": 0 + }, + "signature_header": null + } + }, + "signature": null +} \ No newline at end of file diff --git a/hyperledger_fabric/latest/scripts/gen_channelArtifacts.sh b/hyperledger_fabric/latest/scripts/gen_channelArtifacts.sh index 731284d7..06f34b26 100644 --- a/hyperledger_fabric/latest/scripts/gen_channelArtifacts.sh +++ b/hyperledger_fabric/latest/scripts/gen_channelArtifacts.sh @@ -38,7 +38,7 @@ configtxgen \ -configPath ${FABRIC_CFG_PATH} \ -profile ${APP_CHANNEL_PROFILE} \ -channelID ${APP_CHANNEL} \ - -outputCreateChannelTx ${APP_CHANNEL_TX} \ + -outputCreateChannelTx ${APP_CHANNEL_TX} configtxgen \ -inspectChannelCreateTx ${APP_CHANNEL_TX} > ${APP_CHANNEL_TX}.json diff --git a/hyperledger_fabric/latest/solo/channel-artifacts/businesschannel.tx.json b/hyperledger_fabric/latest/solo/channel-artifacts/businesschannel.tx.json index e69de29b..125900ef 100644 --- a/hyperledger_fabric/latest/solo/channel-artifacts/businesschannel.tx.json +++ b/hyperledger_fabric/latest/solo/channel-artifacts/businesschannel.tx.json @@ -0,0 +1,143 @@ +{ + "payload": { + "data": { + "config_update": { + "channel_id": "businesschannel", + "isolated_data": {}, + "read_set": { + "groups": { + "Application": { + "groups": { + "Org1MSP": { + "groups": {}, + "mod_policy": "", + "policies": {}, + "values": {}, + "version": "0" + }, + "Org2MSP": { + "groups": {}, + "mod_policy": "", + "policies": {}, + "values": {}, + "version": "0" + } + }, + "mod_policy": "", + "policies": {}, + "values": {}, + "version": "0" + } + }, + "mod_policy": "", + "policies": {}, + "values": { + "Consortium": { + "mod_policy": "", + "value": null, + "version": "0" + } + }, + "version": "0" + }, + "write_set": { + "groups": { + "Application": { + "groups": { + "Org1MSP": { + "groups": {}, + "mod_policy": "", + "policies": {}, + "values": {}, + "version": "0" + }, + "Org2MSP": { + "groups": {}, + "mod_policy": "", + "policies": {}, + "values": {}, + "version": "0" + } + }, + "mod_policy": "Admins", + "policies": { + "Admins": { + "mod_policy": "Admins", + "policy": { + "type": 3, + "value": { + "rule": "MAJORITY", + "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": { + "Capabilities": { + "mod_policy": "Admins", + "value": { + "capabilities": { + "V1_2": {} + } + }, + "version": "0" + } + }, + "version": "1" + } + }, + "mod_policy": "", + "policies": {}, + "values": { + "Consortium": { + "mod_policy": "", + "value": { + "name": "SampleConsortium" + }, + "version": "0" + } + }, + "version": "0" + } + }, + "signatures": [] + }, + "header": { + "channel_header": { + "channel_id": "businesschannel", + "epoch": "0", + "extension": null, + "timestamp": "2018-09-10T06:07:37Z", + "tls_cert_hash": null, + "tx_id": "", + "type": 2, + "version": 0 + }, + "signature_header": null + } + }, + "signature": null +}