mirror of
https://github.com/corda/corda.git
synced 2025-06-16 06:08:13 +00:00
Vault: any state that has us as a participant is relevant.
This commit is contained in:
@ -530,9 +530,8 @@ class NodeVaultService(private val services: ServiceHub, dataSourceProperties: P
|
|||||||
|
|
||||||
private fun isRelevant(state: ContractState, ourKeys: Set<PublicKey>) = when (state) {
|
private fun isRelevant(state: ContractState, ourKeys: Set<PublicKey>) = when (state) {
|
||||||
is OwnableState -> state.owner.owningKey.containsAny(ourKeys)
|
is OwnableState -> state.owner.owningKey.containsAny(ourKeys)
|
||||||
// It's potentially of interest to the vault
|
|
||||||
is LinearState -> state.isRelevant(ourKeys)
|
is LinearState -> state.isRelevant(ourKeys)
|
||||||
else -> false
|
else -> ourKeys.intersect(state.participants.map { it.owningKey }).isNotEmpty()
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user