mirror of
https://github.com/corda/corda.git
synced 2025-06-17 14:48:16 +00:00
isRelevant didn't work for composite ownership, it's now fixed (under certain assumptions). (#3967)
This commit is contained in:
committed by
GitHub
parent
c9bce39696
commit
7b4c4803b9
@ -4,6 +4,7 @@ import co.paralleluniverse.fibers.Suspendable
|
||||
import co.paralleluniverse.strands.Strand
|
||||
import net.corda.core.contracts.*
|
||||
import net.corda.core.crypto.SecureHash
|
||||
import net.corda.core.crypto.containsAny
|
||||
import net.corda.core.internal.*
|
||||
import net.corda.core.messaging.DataFeed
|
||||
import net.corda.core.node.ServicesForResolution
|
||||
@ -433,7 +434,7 @@ class NodeVaultService(
|
||||
is OwnableState -> (state.participants.map { it.owningKey } + state.owner.owningKey).toSet()
|
||||
else -> state.participants.map { it.owningKey }
|
||||
}
|
||||
return keysToCheck.any { it in myKeys }
|
||||
return keysToCheck.any { it.containsAny(myKeys) }
|
||||
}
|
||||
|
||||
@Throws(VaultQueryException::class)
|
||||
|
Reference in New Issue
Block a user