Skip to content

Commit

Permalink
[FAB-5937] Bad default mod_policy for Consortiums
Browse files Browse the repository at this point in the history
This is a backport of the fix from v1.1 for v1.0.2.

The mod_policy for /Channel/Consortiums/Admins currently defaults to
Admins (itself), but this should be /Channel/Orderer/Admins.

This CR fixes configtxgen to set the appropriate default.

Change-Id: Id5cba18a84ddf7ae232836e8b51f54feb31e5008
Signed-off-by: Jason Yellick <jyellick@us.ibm.com>
  • Loading branch information
Jason Yellick committed Aug 28, 2017
1 parent ae4e37d commit 615eb21
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions common/configtx/tool/provisional/provisional.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ func New(conf *genesisconfig.Profile) Generator {
Type: int32(cb.Policy_SIGNATURE),
Value: utils.MarshalOrPanic(cauthdsl.AcceptAllPolicy),
},
ModPolicy: OrdererAdminsPolicy,
}

bs.consortiumsGroups = append(bs.consortiumsGroups, tcg)
Expand Down

0 comments on commit 615eb21

Please sign in to comment.