Created
August 17, 2020 07:29
-
-
Save akegaviar/40784486b65b5d73f111504932b59d5c to your computer and use it in GitHub Desktop.
This file contains 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
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