@@ -20,7 +20,6 @@ import (
20
20
"fmt"
21
21
22
22
api "github.com/hyperledger/fabric/common/configvalues"
23
- "github.com/hyperledger/fabric/common/configvalues/channel/common/organization"
24
23
mspconfig "github.com/hyperledger/fabric/common/configvalues/msp"
25
24
cb "github.com/hyperledger/fabric/protos/common"
26
25
pb "github.com/hyperledger/fabric/protos/peer"
@@ -42,7 +41,7 @@ type applicationOrgConfig struct {
42
41
// SharedConfigImpl is an implementation of Manager and configtx.ConfigHandler
43
42
// In general, it should only be referenced as an Impl for the configtx.Manager
44
43
type ApplicationOrgConfig struct {
45
- * organization. OrgConfig
44
+ * OrganizationGroup
46
45
pendingConfig * applicationOrgConfig
47
46
config * applicationOrgConfig
48
47
@@ -52,8 +51,8 @@ type ApplicationOrgConfig struct {
52
51
// NewSharedConfigImpl creates a new SharedConfigImpl with the given CryptoHelper
53
52
func NewApplicationOrgConfig (id string , mspConfig * mspconfig.MSPConfigHandler ) * ApplicationOrgConfig {
54
53
return & ApplicationOrgConfig {
55
- OrgConfig : organization . NewOrgConfig (id , mspConfig ),
56
- config : & applicationOrgConfig {},
54
+ OrganizationGroup : NewOrganizationGroup (id , mspConfig ),
55
+ config : & applicationOrgConfig {},
57
56
}
58
57
}
59
58
@@ -72,14 +71,14 @@ func (oc *ApplicationOrgConfig) BeginValueProposals(groups []string) ([]api.Valu
72
71
logger .Panicf ("Programming error, cannot call begin in the middle of a proposal" )
73
72
}
74
73
oc .pendingConfig = & applicationOrgConfig {}
75
- return oc .OrgConfig .BeginValueProposals (groups )
74
+ return oc .OrganizationGroup .BeginValueProposals (groups )
76
75
}
77
76
78
77
// RollbackProposals is used to abandon a new config proposal
79
78
func (oc * ApplicationOrgConfig ) RollbackProposals () {
80
79
logger .Debugf ("Rolling back proposed org config" )
81
80
oc .pendingConfig = nil
82
- oc .OrgConfig .RollbackProposals ()
81
+ oc .OrganizationGroup .RollbackProposals ()
83
82
}
84
83
85
84
// CommitProposals is used to commit a new config proposal
@@ -90,7 +89,7 @@ func (oc *ApplicationOrgConfig) CommitProposals() {
90
89
}
91
90
oc .config = oc .pendingConfig
92
91
oc .pendingConfig = nil
93
- oc .OrgConfig .CommitProposals ()
92
+ oc .OrganizationGroup .CommitProposals ()
94
93
}
95
94
96
95
// ProposeValue is used to add new config to the config proposal
@@ -106,7 +105,7 @@ func (oc *ApplicationOrgConfig) ProposeValue(key string, configValue *cb.ConfigV
106
105
}
107
106
oc .pendingConfig .anchorPeers = anchorPeers .AnchorPeers
108
107
default :
109
- return oc .OrgConfig .ProposeValue (key , configValue )
108
+ return oc .OrganizationGroup .ProposeValue (key , configValue )
110
109
}
111
110
112
111
return nil
0 commit comments