Created
June 14, 2019 07:43
-
-
Save lankydan/4796db73043f635fb5ead7a043c5b76d to your computer and use it in GitHub Desktop.
Simple Broadcasting of a transaction - Calling the flow
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
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