ReceiveTransactionFlow.<init> - corda

corda / net.corda.core.flows / ReceiveTransactionFlow / <init>

# <init>

`ReceiveTransactionFlow(otherSideSession: FlowSession, checkSufficientSignatures: Boolean = true, statesToRecord: StatesToRecord = StatesToRecord.NONE)`

The ReceiveTransactionFlow should be called in response to the SendTransactionFlow.

This flow is a combination of FlowSession.receive, resolve and SignedTransaction.verify. This flow will receive the SignedTransaction and perform the resolution back-and-forth required to check the dependencies and download any missing attachments. The flow will return the SignedTransaction after it is resolved and then verified using SignedTransaction.verify.

Please note that it will not store the transaction to the vault unless that is explicitly requested and checkSufficientSignatures is true. Setting statesToRecord to anything else when checkSufficientSignatures is false will not update the vault.

Attention: At the moment, this flow receives a SignedTransaction first thing and then proceeds by invoking a ResolveTransactionsFlow subflow. This is used as a criterion to identify cases, where a counterparty has failed notarising a transact