Skip to content

Commit c81670e

Browse files
committed
call ordering fix
1 parent 908dc40 commit c81670e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Tokens/dollartohousetoken/workflows/src/main/java/net/corda/examples/dollartohousetoken/flows/HouseSaleInitiatorFlow.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,12 @@ public String call() throws FlowException {
8787
/* Call the CollectSignaturesFlow to receive signature of the buyer */
8888
SignedTransaction signedTransaction = subFlow(new CollectSignaturesFlow(initialSignedTrnx, ImmutableList.of(buyerSession)));
8989

90-
/* Distribution list is a list of identities that should receive updates. For this mechanism to behave correctly we call the UpdateDistributionListFlow flow */
91-
subFlow(new UpdateDistributionListFlow(signedTransaction));
92-
9390
/* Call finality flow to notarise the transaction */
9491
SignedTransaction stx = subFlow(new FinalityFlow(signedTransaction, ImmutableList.of(buyerSession)));
92+
93+
/* Distribution list is a list of identities that should receive updates. For this mechanism to behave correctly we call the UpdateDistributionListFlow flow */
94+
subFlow(new UpdateDistributionListFlow(stx));
95+
9596
return "\nThe house is sold to "+ this.buyer.getName().getOrganisation() + "\nTransaction ID: "
9697
+ stx.getId();
9798
}

0 commit comments

Comments
 (0)