mirror of
https://github.com/corda/corda.git
synced 2024-12-30 17:57:02 +00:00
Updates to new resolve tx flows... (#3766)
This commit is contained in:
parent
68bfb7ff66
commit
75ac13815b
@ -98,7 +98,9 @@ open class DataVendingFlow(val otherSideSession: FlowSession, val payload: Any)
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Suspendable
|
@Suspendable
|
||||||
private fun getInputTransactions(tx: SignedTransaction): Set<SecureHash> = tx.inputs.map { it.txhash }.toSet()
|
private fun getInputTransactions(tx: SignedTransaction): Set<SecureHash> {
|
||||||
|
return tx.inputs.map { it.txhash }.toSet() + tx.references.map { it.txhash }.toSet()
|
||||||
|
}
|
||||||
|
|
||||||
private class TransactionAuthorisationFilter(private val authorisedTransactions: MutableSet<SecureHash> = mutableSetOf(), val acceptAll: Boolean = false) {
|
private class TransactionAuthorisationFilter(private val authorisedTransactions: MutableSet<SecureHash> = mutableSetOf(), val acceptAll: Boolean = false) {
|
||||||
fun isAuthorised(txId: SecureHash) = acceptAll || authorisedTransactions.contains(txId)
|
fun isAuthorised(txId: SecureHash) = acceptAll || authorisedTransactions.contains(txId)
|
||||||
|
Loading…
Reference in New Issue
Block a user