net.corda.core.node.services / NetworkMapCache / getRepresentativeNode

getRepresentativeNode

abstract fun getRepresentativeNode(party: Party): NodeInfo?

Given a party, returns a node advertising it as an identity. If more than one node found the result is chosen at random.

In general, nodes can advertise multiple identities: a legal identity, and separate identities for each of the services it provides. In case of a distributed service – run by multiple nodes – each participant advertises the identity of the whole group. If the provided party is a group identity, multiple nodes advertising it will be found, and this method will return a randomly chosen one. If party is an individual (legal) identity, we currently assume that it will be advertised by one node only, which will be returned as the result.