Skip to content

Commit

Permalink
[FAB-2106] Define orderer configtx schema
Browse files Browse the repository at this point in the history
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 <jyellick@us.ibm.com>
  • Loading branch information
Jason Yellick committed Feb 11, 2017
1 parent bd549d7 commit 97338dc
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions common/configtx/handlers/orderer/sharedconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,34 @@ import (
"github.com/op/go-logging"
)

var orgSchema = &cb.ConfigGroupSchema{
Groups: map[string]*cb.ConfigGroupSchema{},
Values: map[string]*cb.ConfigValueSchema{
"MSP": nil, // TODO, consolidate into a constant once common org code exists
},
Policies: map[string]*cb.ConfigPolicySchema{
// TODO, set appropriately once hierarchical policies are implemented
},
}

var Schema = &cb.ConfigGroupSchema{
Groups: map[string]*cb.ConfigGroupSchema{
"": orgSchema,
},
Values: map[string]*cb.ConfigValueSchema{
ConsensusTypeKey: nil,
BatchSizeKey: nil,
BatchTimeoutKey: nil,
ChainCreationPolicyNamesKey: nil,
KafkaBrokersKey: nil,
IngressPolicyNamesKey: nil,
EgressPolicyNamesKey: nil,
},
Policies: map[string]*cb.ConfigPolicySchema{
// TODO, set appropriately once hierarchical policies are implemented
},
}

const (
// ConsensusTypeKey is the cb.ConfigItem type key name for the ConsensusType message
ConsensusTypeKey = "ConsensusType"
Expand Down

0 comments on commit 97338dc

Please sign in to comment.