@@ -58,8 +58,6 @@ var Schema = &cb.ConfigGroupSchema{
58
58
BatchTimeoutKey : nil ,
59
59
ChainCreationPolicyNamesKey : nil ,
60
60
KafkaBrokersKey : nil ,
61
- IngressPolicyNamesKey : nil ,
62
- EgressPolicyNamesKey : nil ,
63
61
},
64
62
Policies : map [string ]* cb.ConfigPolicySchema {
65
63
// TODO, set appropriately once hierarchical policies are implemented
@@ -81,12 +79,6 @@ const (
81
79
82
80
// KafkaBrokersKey is the cb.ConfigItem type key name for the KafkaBrokers message
83
81
KafkaBrokersKey = "KafkaBrokers"
84
-
85
- // IngressPolicyNamesKey is the cb.ConfigItem type key name for the IngressPolicyNames message
86
- IngressPolicyNamesKey = "IngressPolicyNames"
87
-
88
- // EgressPolicyNamesKey is the cb.ConfigItem type key name for the EgressPolicyNames message
89
- EgressPolicyNamesKey = "EgressPolicyNames"
90
82
)
91
83
92
84
var logger = logging .MustGetLogger ("configtx/handlers/orderer" )
@@ -97,8 +89,6 @@ type ordererConfig struct {
97
89
batchTimeout time.Duration
98
90
chainCreationPolicyNames []string
99
91
kafkaBrokers []string
100
- ingressPolicyNames []string
101
- egressPolicyNames []string
102
92
orgs map [string ]* organization.OrgConfig
103
93
}
104
94
@@ -146,16 +136,6 @@ func (pm *ManagerImpl) KafkaBrokers() []string {
146
136
return pm .config .kafkaBrokers
147
137
}
148
138
149
- // IngressPolicyNames returns the name of the policy to validate incoming broadcast messages against
150
- func (pm * ManagerImpl ) IngressPolicyNames () []string {
151
- return pm .config .ingressPolicyNames
152
- }
153
-
154
- // EgressPolicyNames returns the name of the policy to validate incoming deliver seeks against
155
- func (pm * ManagerImpl ) EgressPolicyNames () []string {
156
- return pm .config .egressPolicyNames
157
- }
158
-
159
139
// BeginValueProposals is used to start a new config proposal
160
140
func (pm * ManagerImpl ) BeginValueProposals (groups []string ) ([]api.ValueProposer , error ) {
161
141
logger .Debugf ("Beginning a possible new orderer shared config" )
@@ -255,18 +235,6 @@ func (pm *ManagerImpl) ProposeValue(key string, configValue *cb.ConfigValue) err
255
235
} else {
256
236
pm .pendingConfig .chainCreationPolicyNames = chainCreationPolicyNames .Names
257
237
}
258
- case IngressPolicyNamesKey :
259
- ingressPolicyNames := & ab.IngressPolicyNames {}
260
- if err := proto .Unmarshal (configValue .Value , ingressPolicyNames ); err != nil {
261
- return fmt .Errorf ("Unmarshaling error for IngressPolicyNames: %s" , err )
262
- }
263
- pm .pendingConfig .ingressPolicyNames = ingressPolicyNames .Names
264
- case EgressPolicyNamesKey :
265
- egressPolicyNames := & ab.EgressPolicyNames {}
266
- if err := proto .Unmarshal (configValue .Value , egressPolicyNames ); err != nil {
267
- return fmt .Errorf ("Unmarshaling error for EgressPolicyNames: %s" , err )
268
- }
269
- pm .pendingConfig .egressPolicyNames = egressPolicyNames .Names
270
238
case KafkaBrokersKey :
271
239
kafkaBrokers := & ab.KafkaBrokers {}
272
240
if err := proto .Unmarshal (configValue .Value , kafkaBrokers ); err != nil {
0 commit comments