Skip to content

Commit 97338dc

Browse files
author
Jason Yellick
committed
[FAB-2106] Define orderer configtx schema
https://jira.hyperledger.org/browse/FAB-2106 This CR defines the acceptable configuration structure for the orderer pieces of the configtx. Change-Id: I09bbf9fd3e37d3d8343cf56e8e88a2e8545f0cb7 Signed-off-by: Jason Yellick <[email protected]>
1 parent bd549d7 commit 97338dc

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

common/configtx/handlers/orderer/sharedconfig.go

+28
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,34 @@ import (
3030
"github.com/op/go-logging"
3131
)
3232

33+
var orgSchema = &cb.ConfigGroupSchema{
34+
Groups: map[string]*cb.ConfigGroupSchema{},
35+
Values: map[string]*cb.ConfigValueSchema{
36+
"MSP": nil, // TODO, consolidate into a constant once common org code exists
37+
},
38+
Policies: map[string]*cb.ConfigPolicySchema{
39+
// TODO, set appropriately once hierarchical policies are implemented
40+
},
41+
}
42+
43+
var Schema = &cb.ConfigGroupSchema{
44+
Groups: map[string]*cb.ConfigGroupSchema{
45+
"": orgSchema,
46+
},
47+
Values: map[string]*cb.ConfigValueSchema{
48+
ConsensusTypeKey: nil,
49+
BatchSizeKey: nil,
50+
BatchTimeoutKey: nil,
51+
ChainCreationPolicyNamesKey: nil,
52+
KafkaBrokersKey: nil,
53+
IngressPolicyNamesKey: nil,
54+
EgressPolicyNamesKey: nil,
55+
},
56+
Policies: map[string]*cb.ConfigPolicySchema{
57+
// TODO, set appropriately once hierarchical policies are implemented
58+
},
59+
}
60+
3361
const (
3462
// ConsensusTypeKey is the cb.ConfigItem type key name for the ConsensusType message
3563
ConsensusTypeKey = "ConsensusType"

0 commit comments

Comments
 (0)