Skip to content

Commit

Permalink
[FAB-7394] Remove duplicate code from msp setup
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
mastersingh24 committed Dec 16, 2017
1 parent 341159b commit dc760af
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions msp/mspimplsetup.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,17 +158,6 @@ func (msp *bccspmsp) setupCAs(conf *m.FabricMSPConfig) error {
msp.opts.Intermediates.AddCert(id.(*identity).cert)
}

// make and fill the set of admin certs (if present)
msp.admins = make([]Identity, len(conf.Admins))
for i, admCert := range conf.Admins {
id, _, err := msp.getIdentityFromConf(admCert)
if err != nil {
return err
}

msp.admins[i] = id
}

return nil
}

Expand Down

0 comments on commit dc760af

Please sign in to comment.