Skip to content

Commit dc760af

Browse files
committedDec 16, 2017
[FAB-7394] Remove duplicate code from msp setup
The setupCAs function includes the code that is actually properly run in the setupAdmins function. Change-Id: I62d1729912ce52092ada3cdbb3fe7ca21b65be4c Signed-off-by: Gari Singh <gari.r.singh@gmail.com>
1 parent 341159b commit dc760af

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed
 

‎msp/mspimplsetup.go

-11
Original file line numberDiff line numberDiff line change
@@ -158,17 +158,6 @@ func (msp *bccspmsp) setupCAs(conf *m.FabricMSPConfig) error {
158158
msp.opts.Intermediates.AddCert(id.(*identity).cert)
159159
}
160160

161-
// make and fill the set of admin certs (if present)
162-
msp.admins = make([]Identity, len(conf.Admins))
163-
for i, admCert := range conf.Admins {
164-
id, _, err := msp.getIdentityFromConf(admCert)
165-
if err != nil {
166-
return err
167-
}
168-
169-
msp.admins[i] = id
170-
}
171-
172161
return nil
173162
}
174163

0 commit comments

Comments
 (0)
Please sign in to comment.