Skip to content

Commit fadd1f6

Browse files
author
Jason Yellick
committedFeb 12, 2018
[FAB-8226] Include consortia TLS CAs
The orderer updateTrustRoots currently ignores organizations defined in consortia for the orderer system channel. This CR simply includes them in the update path. Change-Id: I56c590248a4a6e71db1ae32e9f95e44066bea5f9 Signed-off-by: Jason Yellick <jyellick@us.ibm.com>
1 parent ad5d0f7 commit fadd1f6

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
 

‎orderer/common/server/main.go

+9
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,15 @@ func updateTrustedRoots(srv comm.GRPCServer, rootCASupport *comm.CASupport,
282282
}
283283
}
284284

285+
if cc, ok := cm.ConsortiumsConfig(); ok {
286+
for _, consortium := range cc.Consortiums() {
287+
//loop through consortium orgs and build map of MSPIDs
288+
for _, consortiumOrg := range consortium.Organizations() {
289+
appOrgMSPs[consortiumOrg.MSPID()] = struct{}{}
290+
}
291+
}
292+
}
293+
285294
cid := cm.ConfigtxValidator().ChainID()
286295
logger.Debugf("updating root CAs for channel [%s]", cid)
287296
msps, err := cm.MSPManager().GetMSPs()

0 commit comments

Comments
 (0)
Please sign in to comment.