From e8cecbab07afd64006e74cbb96740ca8ee2de91b Mon Sep 17 00:00:00 2001 From: bjzhang03 Date: Thu, 25 Oct 2018 03:11:56 -0400 Subject: [PATCH] solve the warning in the first-network project Signed-off-by: bjzhang03 --- first-network/byfn.sh | 2 +- first-network/org3-artifacts/configtx.yaml | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/first-network/byfn.sh b/first-network/byfn.sh index 41ed1b8a..84614f68 100755 --- a/first-network/byfn.sh +++ b/first-network/byfn.sh @@ -383,7 +383,7 @@ function generateChannelArtifacts() { # Note: For some unknown reason (at least for now) the block file can't be # named orderer.genesis.block or the orderer will fail to launch! set -x - configtxgen -profile TwoOrgsOrdererGenesis -outputBlock ./channel-artifacts/genesis.block + configtxgen -profile TwoOrgsOrdererGenesis -channelID testchainid -outputBlock ./channel-artifacts/genesis.block res=$? set +x if [ $res -ne 0 ]; then diff --git a/first-network/org3-artifacts/configtx.yaml b/first-network/org3-artifacts/configtx.yaml index e1205455..faa7591d 100644 --- a/first-network/org3-artifacts/configtx.yaml +++ b/first-network/org3-artifacts/configtx.yaml @@ -23,6 +23,17 @@ Organizations: MSPDir: crypto-config/peerOrganizations/org3.example.com/msp + Policies: + Readers: + Type: Signature + Rule: "OR('Org3MSP.admin', 'Org3MSP.peer', 'Org3MSP.client')" + Writers: + Type: Signature + Rule: "OR('Org3MSP.admin', 'Org3MSP.client')" + Admins: + Type: Signature + Rule: "OR('Org3MSP.admin')" + AnchorPeers: # AnchorPeers defines the location of peers which can be used # for cross org gossip communication. Note, this value is only