Vault: any state that has us as a participant is relevant.

This commit is contained in:
Mike Hearn 2017-05-19 11:25:29 +02:00
parent c7b751d6a5
commit 207d3b0b8f

View File

@ -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()
}
/**