Created
July 3, 2024 07:06
-
-
Save parisyup/e7c868c1710d57ea0d361cc075c1deb4 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") | |
public class ReceiveTransactionFlow implements ResponderFlow { | |
private static final Logger log = LoggerFactory.getLogger(ReceiveTransactionFlow.class); | |
@CordaInject | |
private UtxoLedgerService utxoLedgerService; | |
@Suspendable | |
@Override | |
public void call(FlowSession session) { | |
var transaction = utxoLedgerService.receiveTransaction(session); | |
log.info("Received transaction - " + transaction.getId()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment