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