Created
July 3, 2024 06:55
-
-
Save parisyup/fbcd36096cc39818b8c93ed55381fb2c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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