diff --git a/corda/contracts/src/main/java/djmil/cordacheckers/contracts/GameResultContract.java b/corda/contracts/src/main/java/djmil/cordacheckers/contracts/GameResultContract.java index d328633..ee6cfeb 100644 --- a/corda/contracts/src/main/java/djmil/cordacheckers/contracts/GameResultContract.java +++ b/corda/contracts/src/main/java/djmil/cordacheckers/contracts/GameResultContract.java @@ -21,6 +21,7 @@ public class GameResultContract implements net.corda.v5.ledger.utxo.Contract { switch (command.getAction()) { case SURRENDER: + System.out.println("game surrender validate"); command.validateSurrender(trx); break; 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 6fd5dea..c551cc9 100644 --- a/corda/workflows/src/main/java/djmil/cordacheckers/gamestate/CommitTrx.java +++ b/corda/workflows/src/main/java/djmil/cordacheckers/gamestate/CommitTrx.java @@ -62,7 +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() ); + System.out.println("we have a custoduan " + custodyName.getCommonName() ); sessionsList.add(flowMessaging.initiateFlow(custodyName)); } @@ -71,7 +71,8 @@ public class CommitTrx implements SubFlow { .getTransaction() .getId(); - System.out.println("Trx commited "+trxId); + 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 c69cb9d..ace6b7c 100644 --- a/corda/workflows/src/main/java/djmil/cordacheckers/gamestate/CommitTrxResponder.java +++ b/corda/workflows/src/main/java/djmil/cordacheckers/gamestate/CommitTrxResponder.java @@ -33,7 +33,7 @@ public class CommitTrxResponder implements ResponderFlow { UtxoTransactionValidator txValidator = trxToValidate -> { try { //checkParticipants(session, trxToValidate); - + System.out.println("commit responder"); /* * Other checks / actions ? */ @@ -57,7 +57,7 @@ public class CommitTrxResponder implements ResponderFlow { @Suspendable void checkParticipants(FlowSession session, UtxoLedgerTransaction gameStateUtxo) throws ParticipantException { - System.out.println("commit responder"); + final GameInfo info = new GameInfo(gameStateUtxo); final var conterpartyName = session.getCounterparty(); if (info.issuer.compareTo(conterpartyName) != 0)