Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.