Skip to content

Instantly share code, notes, and snippets.

@akegaviar
Created August 17, 2020 07:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akegaviar/40784486b65b5d73f111504932b59d5c to your computer and use it in GitHub Desktop.
Save akegaviar/40784486b65b5d73f111504932b59d5c to your computer and use it in GitHub Desktop.
package com.helloBlock.flows;
import co.paralleluniverse.fibers.Suspendable;
import net.corda.core.flows.*;
import net.corda.core.transactions.SignedTransaction;
@InitiatedBy(helloBlockFlow.class)
public class helloBlockFlowResponder extends FlowLogic<SignedTransaction> {
private FlowSession counterpartySession;
helloBlockFlowResponder(FlowSession counterpartySession){
this.counterpartySession = counterpartySession;
}
@Suspendable
@Override
public SignedTransaction call() throws FlowException {
return subFlow(new ReceiveFinalityFlow(this.counterpartySession));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment