Skip to content

Instantly share code, notes, and snippets.

@parisyup
Created July 3, 2024 07:06
Show Gist options
  • Save parisyup/e7c868c1710d57ea0d361cc075c1deb4 to your computer and use it in GitHub Desktop.
Save parisyup/e7c868c1710d57ea0d361cc075c1deb4 to your computer and use it in GitHub Desktop.
@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