mirror of
https://github.com/corda/corda.git
synced 2024-12-29 09:18:58 +00:00
Fix HealthCheckFlow to work with distributed notaries
This commit is contained in:
parent
a6a2008bb9
commit
1027b0e49c
@ -28,9 +28,7 @@ class HealthCheckNotaryClientFlow(
|
|||||||
val notaryParty = checkTransaction()
|
val notaryParty = checkTransaction()
|
||||||
|
|
||||||
val parties = if (checkEntireCluster) {
|
val parties = if (checkEntireCluster) {
|
||||||
serviceHub.networkMapCache
|
serviceHub.networkMapCache.notaryIdentities.filter { it.owningKey == notaryParty.owningKey }
|
||||||
.getNodesByLegalIdentityKey(notaryParty.owningKey)
|
|
||||||
.map { it.legalIdentities.first() }
|
|
||||||
} else {
|
} else {
|
||||||
listOf(notaryParty)
|
listOf(notaryParty)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user