From 1cb0a45e513effde189dcf11c9528cdbf5bdadfd Mon Sep 17 00:00:00 2001 From: djmil Date: Tue, 28 Nov 2023 23:05:51 +0100 Subject: [PATCH] silly fix --- .../main/java/djmil/cordacheckers/gamestate/CommitTrx.java | 7 +++---- .../djmil/cordacheckers/gamestate/CommitTrxResponder.java | 1 + 2 files changed, 4 insertions(+), 4 deletions(-) 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 ); } }