mirror of
https://github.com/corda/corda.git
synced 2024-12-28 00:38:55 +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 parties = if (checkEntireCluster) {
|
||||
serviceHub.networkMapCache
|
||||
.getNodesByLegalIdentityKey(notaryParty.owningKey)
|
||||
.map { it.legalIdentities.first() }
|
||||
serviceHub.networkMapCache.notaryIdentities.filter { it.owningKey == notaryParty.owningKey }
|
||||
} else {
|
||||
listOf(notaryParty)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user