From d647d4eebf029bafd56c6e3bb52df722d9f7c3a7 Mon Sep 17 00:00:00 2001 From: djmil Date: Mon, 27 Nov 2023 16:30:56 +0100 Subject: [PATCH] s --- .../djmil/cordacheckers/gameresult/GameResultCommiter.java | 2 +- .../src/main/java/djmil/cordacheckers/gamestate/CommitTrx.java | 3 ++- .../java/djmil/cordacheckers/gamestate/CommitTrxResponder.java | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/corda/workflows/src/main/java/djmil/cordacheckers/gameresult/GameResultCommiter.java b/corda/workflows/src/main/java/djmil/cordacheckers/gameresult/GameResultCommiter.java index 2c964ce..40f2b2b 100644 --- a/corda/workflows/src/main/java/djmil/cordacheckers/gameresult/GameResultCommiter.java +++ b/corda/workflows/src/main/java/djmil/cordacheckers/gameresult/GameResultCommiter.java @@ -62,7 +62,7 @@ public class GameResultCommiter implements SubFlow { .setNotary(gameBoardSar.getState().getNotaryName()) .setTimeWindowUntil(Instant.now().plusMillis(Duration.ofDays(1).toMillis())) .toSignedTransaction(); - +System.out.println("GameResultCommiter"); return this.flowEngine.subFlow( new CommitTrx(gameResultTrx, getCounterparty(gameResult), 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 e28adf5..6fd5dea 100644 --- a/corda/workflows/src/main/java/djmil/cordacheckers/gamestate/CommitTrx.java +++ b/corda/workflows/src/main/java/djmil/cordacheckers/gamestate/CommitTrx.java @@ -52,7 +52,6 @@ public class CommitTrx implements SubFlow { @Suspendable public SecureHash call() { log.info("GameState commit started"); - System.out.println("Surrender commit started"); /* * Calls the Corda provided finalise() function which gather signatures from the counterparty, @@ -63,6 +62,7 @@ public class CommitTrx implements SubFlow { List sessionsList = new LinkedList(Arrays.asList(session)); if (custodyName != null) { + System.out.println("we have a custoduan" + custodyName.getCommonName() ); sessionsList.add(flowMessaging.initiateFlow(custodyName)); } @@ -71,6 +71,7 @@ public class CommitTrx implements SubFlow { .getTransaction() .getId(); + System.out.println("Trx commited "+trxId); log.info("GameState commit " +trxId); return trxId; } 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 ce9a576..c69cb9d 100644 --- a/corda/workflows/src/main/java/djmil/cordacheckers/gamestate/CommitTrxResponder.java +++ b/corda/workflows/src/main/java/djmil/cordacheckers/gamestate/CommitTrxResponder.java @@ -32,7 +32,7 @@ public class CommitTrxResponder implements ResponderFlow { public void call(FlowSession session) { UtxoTransactionValidator txValidator = trxToValidate -> { try { - checkParticipants(session, trxToValidate); + //checkParticipants(session, trxToValidate); /* * Other checks / actions ?