Skip to content

Instantly share code, notes, and snippets.

@lankydan
Created June 14, 2019 07:43
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/4796db73043f635fb5ead7a043c5b76d to your computer and use it in GitHub Desktop.
Save lankydan/4796db73043f635fb5ead7a043c5b76d to your computer and use it in GitHub Desktop.
Simple Broadcasting of a transaction - Calling the flow
subFlow(FinalityFlow(stx, sessions)).also {
// sends to everyone in the network
val broadcastToParties =
serviceHub.networkMapCache.allNodes.map { node -> node.legalIdentities.first() } - message.recipient - message.sender
subFlow(BroadcastTransactionFlow(it, broadcastToParties))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment