Skip to content

Commit

Permalink
proto-to-block 3
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikita Neznaemov committed Oct 24, 2023
1 parent 1716903 commit 8dbbde1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions identity/msp.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,10 @@ func MSPFromPath(mspID, mspPath string, opts ...MSPOpt) (*MSP, error) {
}
}

if mspInstance.config, err = FabricMSPConfigFromPath(mspID, mspOpts.mspPath); err != nil {
return nil, err
if !mspOpts.skipConfig {
if mspInstance.config, err = FabricMSPConfigFromPath(mspID, mspOpts.mspPath); err != nil {
return nil, err
}
}

if mspOpts.validateCertChain {
Expand Down

0 comments on commit 8dbbde1

Please sign in to comment.