diff --git a/core/src/main/kotlin/net/corda/core/flows/SendTransactionFlow.kt b/core/src/main/kotlin/net/corda/core/flows/SendTransactionFlow.kt index d9a27cbaae..d84154eb26 100644 --- a/core/src/main/kotlin/net/corda/core/flows/SendTransactionFlow.kt +++ b/core/src/main/kotlin/net/corda/core/flows/SendTransactionFlow.kt @@ -98,7 +98,9 @@ open class DataVendingFlow(val otherSideSession: FlowSession, val payload: Any) } @Suspendable - private fun getInputTransactions(tx: SignedTransaction): Set = tx.inputs.map { it.txhash }.toSet() + private fun getInputTransactions(tx: SignedTransaction): Set { + return tx.inputs.map { it.txhash }.toSet() + tx.references.map { it.txhash }.toSet() + } private class TransactionAuthorisationFilter(private val authorisedTransactions: MutableSet = mutableSetOf(), val acceptAll: Boolean = false) { fun isAuthorised(txId: SecureHash) = acceptAll || authorisedTransactions.contains(txId)