Skip to content

Instantly share code, notes, and snippets.

@davidawad
Created August 11, 2021 19:41
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 davidawad/b93fdf57f5a416950e02d08b52066471 to your computer and use it in GitHub Desktop.
Save davidawad/b93fdf57f5a416950e02d08b52066471 to your computer and use it in GitHub Desktop.
progressTracker.setCurrentStep(FINALISATION);
// We notarise the transaction and get it recorded in the vault of
// the participants of all the transaction's states.
SignedTransaction notarisedTx1 = subFlow(new FinalityFlow(fullySignedTx, singleton(counterpartySession), FINALISATION.childProgressTracker()));
// We can also choose to send it to additional parties who aren't one
// of the state's participants.
List<FlowSession> partySessions = Arrays.asList(counterpartySession, initiateFlow(regulator));
SignedTransaction notarisedTx2 = subFlow(new FinalityFlow(fullySignedTx, partySessions, FINALISATION.childProgressTracker()));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment