diff --git a/corda/workflows/src/main/java/djmil/cordacheckers/gamestate/CommitTrx.java b/corda/workflows/src/main/java/djmil/cordacheckers/gamestate/CommitTrx.java index df584db..f6acd8e 100644 --- a/corda/workflows/src/main/java/djmil/cordacheckers/gamestate/CommitTrx.java +++ b/corda/workflows/src/main/java/djmil/cordacheckers/gamestate/CommitTrx.java @@ -58,11 +58,10 @@ public class CommitTrx implements SubFlow { * notarises the transaction and persists the transaction to each party's vault. */ - final FlowSession counterpartySession = flowMessaging.initiateFlow(this.counterpartyName); + FlowSession counterpartySession = flowMessaging.initiateFlow(this.counterpartyName); + FlowSession custodySession = (this.custodyName != null) ? flowMessaging.initiateFlow(this.custodyName) : null; - List sessionsList = (this.custodyName != null) - ? Arrays.asList(counterpartySession, flowMessaging.initiateFlow(this.custodyName)) - : Arrays.asList(counterpartySession); + List sessionsList = Arrays.asList(counterpartySession, custodySession); System.out.println("sessionsList size " + sessionsList.size()); diff --git a/corda/workflows/src/main/java/djmil/cordacheckers/gamestate/CommitTrxResponder.java b/corda/workflows/src/main/java/djmil/cordacheckers/gamestate/CommitTrxResponder.java index ab5574d..a4850c5 100644 --- a/corda/workflows/src/main/java/djmil/cordacheckers/gamestate/CommitTrxResponder.java +++ b/corda/workflows/src/main/java/djmil/cordacheckers/gamestate/CommitTrxResponder.java @@ -56,6 +56,7 @@ public class CommitTrxResponder implements ResponderFlow { } catch (Exception e) { // Log Corda's specific message about finality validation failure log.warn("Exceptionally finished responder flow", e); + log.warn("Values. session: " + session + " utxoLedgerService: "+ utxoLedgerService ); } }