Skip to content

Instantly share code, notes, and snippets.

@parisyup
Created July 3, 2024 06:55
Show Gist options
  • Save parisyup/fbcd36096cc39818b8c93ed55381fb2c to your computer and use it in GitHub Desktop.
Save parisyup/fbcd36096cc39818b8c93ed55381fb2c to your computer and use it in GitHub Desktop.
@InitiatedBy(protocol = "utxo-transaction-transmission-protocol")
class ReceiveTransactionFlow: ResponderFlow {
private val log = LoggerFactory.getLogger(ReceiveTransactionFlow::class.java)
@CordaInject
lateinit var utxoLedgerService: UtxoLedgerService
@Suspendable
override fun call(session: FlowSession) {
val transaction = utxoLedgerService.receiveTransaction(session)
log.info("Received transaction - ${transaction.id}")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment