mirror of
https://github.com/corda/corda.git
synced 2025-04-07 11:27:01 +00:00
Allows flow exceptions in CheckTransaction.
This commit is contained in:
parent
41a94d1624
commit
88a6002246
@ -262,7 +262,9 @@ abstract class SignTransactionFlow(val otherParty: Party,
|
||||
* @param stx a partially signed transaction received from your counter-party.
|
||||
* @throws FlowException if the proposed transaction fails the checks.
|
||||
*/
|
||||
@Suspendable abstract protected fun checkTransaction(stx: SignedTransaction)
|
||||
@Suspendable
|
||||
@Throws(FlowException::class)
|
||||
abstract protected fun checkTransaction(stx: SignedTransaction)
|
||||
|
||||
@Suspendable private fun checkMySignatureRequired(stx: SignedTransaction, signingKey: PublicKey) {
|
||||
require(signingKey in stx.tx.requiredSigningKeys) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user