s
This commit is contained in:
parent
8c1544d160
commit
d647d4eebf
@ -62,7 +62,7 @@ public class GameResultCommiter implements SubFlow<SecureHash> {
|
||||
.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),
|
||||
|
@ -52,7 +52,6 @@ public class CommitTrx implements SubFlow<SecureHash> {
|
||||
@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<SecureHash> {
|
||||
List<FlowSession> sessionsList = new LinkedList<FlowSession>(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<SecureHash> {
|
||||
.getTransaction()
|
||||
.getId();
|
||||
|
||||
System.out.println("Trx commited "+trxId);
|
||||
log.info("GameState commit " +trxId);
|
||||
return trxId;
|
||||
}
|
||||
|
@ -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 ?
|
||||
|
Loading…
Reference in New Issue
Block a user