Skip to content

Commit 58bf136

Browse files
johannwwdenyeart
authored andcommitted
Update Channel capabilities and msp version to V3_0
As requested by the fabric Code Owner yacovm, the capabilities and the msp version name must be renamed to V3_0, because the ed25519-support will probably enter as a feature in Fabric 3.0. Signed-off-by: Johann Westphall <[email protected]>
1 parent fa1743d commit 58bf136

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

msp/factory.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const (
1919
MSPv1_1
2020
MSPv1_3
2121
MSPv1_4_3
22-
MSPv2_4
22+
MSPv3_0
2323
)
2424

2525
// NewOpts represent

msp/msp.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ var mspTypeStrings = map[ProviderType]string{
209209
}
210210

211211
var Options = map[string]NewOpts{
212-
ProviderTypeToString(FABRIC): &BCCSPNewOpts{NewBaseOpts: NewBaseOpts{Version: MSPv2_4}},
212+
ProviderTypeToString(FABRIC): &BCCSPNewOpts{NewBaseOpts: NewBaseOpts{Version: MSPv3_0}},
213213
ProviderTypeToString(IDEMIX): &IdemixNewOpts{NewBaseOpts: NewBaseOpts{Version: MSPv1_1}},
214214
}
215215

msp/mspimpl.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,8 @@ func newBccspMsp(version MSPVersion, defaultBCCSP bccsp.BCCSP) (MSP, error) {
140140
theMsp.internalValidateIdentityOusFunc = theMsp.validateIdentityOUsV142
141141
theMsp.internalSatisfiesPrincipalInternalFunc = theMsp.satisfiesPrincipalInternalV142
142142
theMsp.internalSetupAdmin = theMsp.setupAdminsV142
143-
case MSPv2_4:
144-
theMsp.internalSetupFunc = theMsp.setupV24
143+
case MSPv3_0:
144+
theMsp.internalSetupFunc = theMsp.setupV3
145145
theMsp.internalValidateIdentityOusFunc = theMsp.validateIdentityOUsV142
146146
theMsp.internalSatisfiesPrincipalInternalFunc = theMsp.satisfiesPrincipalInternalV142
147147
theMsp.internalSetupAdmin = theMsp.setupAdminsV142

msp/mspimplsetup.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,7 @@ func (msp *bccspmsp) setupV142(conf *m.FabricMSPConfig) error {
659659
return nil
660660
}
661661

662-
func (msp *bccspmsp) setupV24(conf *m.FabricMSPConfig) error {
662+
func (msp *bccspmsp) setupV3(conf *m.FabricMSPConfig) error {
663663
err := msp.preSetupV142(conf)
664664
if err != nil {
665665
return err

0 commit comments

Comments
 (0)