NetworkMapCacheBase.getNodesByLegalName - corda

corda / net.corda.core.node.services / NetworkMapCacheBase / getNodesByLegalName

# getNodesByLegalName

`abstract fun getNodesByLegalName(name: CordaX500Name): List<NodeInfo>`

Return a list of NodeInfos which have the given legal name for one of their identities, or an empty list if no such nodes are found.

Normally there is at most one node for a legal name, but for distributed service identities (such as with a notary cluster) there can be multiple nodes sharing the same identity.