Skip to content

Instantly share code, notes, and snippets.

@lankydan
Created June 14, 2019 07:42
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 lankydan/ec89a44a7c4bfef438ee218e34bea7d8 to your computer and use it in GitHub Desktop.
Save lankydan/ec89a44a7c4bfef438ee218e34bea7d8 to your computer and use it in GitHub Desktop.
Simple Broadcasting of a transaction - BroadcastTransactionResponder
@InitiatedBy(BroadcastTransactionFlow::class)
class BroadcastTransactionResponder(private val session: FlowSession) : FlowLogic<Unit>() {
@Suspendable
override fun call() {
subFlow(ReceiveTransactionFlow(session, statesToRecord = StatesToRecord.ALL_VISIBLE))
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment