From e2a22ba9e8bd480a5379d0cd3eccce58a9f76d9c Mon Sep 17 00:00:00 2001 From: Dimos Raptis Date: Fri, 23 Oct 2020 10:07:38 +0100 Subject: [PATCH] Update lastModificationTime in missing spots --- .../services/statemachine/transitions/ErrorFlowTransition.kt | 3 ++- .../services/statemachine/transitions/TopLevelTransition.kt | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/node/src/main/kotlin/net/corda/node/services/statemachine/transitions/ErrorFlowTransition.kt b/node/src/main/kotlin/net/corda/node/services/statemachine/transitions/ErrorFlowTransition.kt index 3ecabd8e0d..9ced8bfb52 100644 --- a/node/src/main/kotlin/net/corda/node/services/statemachine/transitions/ErrorFlowTransition.kt +++ b/node/src/main/kotlin/net/corda/node/services/statemachine/transitions/ErrorFlowTransition.kt @@ -63,7 +63,8 @@ class ErrorFlowTransition( flowState = FlowState.Finished, checkpointState = startingState.checkpoint.checkpointState.copy( numberOfCommits = startingState.checkpoint.checkpointState.numberOfCommits + 1 - ) + ), + lastModificationTime = context.time ) currentState = currentState.copy( checkpoint = newCheckpoint, diff --git a/node/src/main/kotlin/net/corda/node/services/statemachine/transitions/TopLevelTransition.kt b/node/src/main/kotlin/net/corda/node/services/statemachine/transitions/TopLevelTransition.kt index 9fe55b9ee7..92532a316a 100644 --- a/node/src/main/kotlin/net/corda/node/services/statemachine/transitions/TopLevelTransition.kt +++ b/node/src/main/kotlin/net/corda/node/services/statemachine/transitions/TopLevelTransition.kt @@ -371,7 +371,8 @@ class TopLevelTransition( status = Checkpoint.FlowStatus.HOSPITALIZED, checkpointState = startingState.checkpoint.checkpointState.copy( numberOfCommits = startingState.checkpoint.checkpointState.numberOfCommits + 1 - ) + ), + lastModificationTime = context.time ), pendingDeduplicationHandlers = startingState.pendingDeduplicationHandlers - flowStartEvents, closedSessionsPendingToBeSignalled = emptyMap()