From 8534aad3b1c5d9fc82e5d80f22aefbbbdab6d569 Mon Sep 17 00:00:00 2001 From: Dan Newton Date: Sat, 15 Aug 2020 10:08:37 +0100 Subject: [PATCH] ENT-5672 Know if paused flow is hospitalized (#6641) Missing change from the original commit. --- .../statemachine/SingleThreadedStateMachineManager.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/node/src/main/kotlin/net/corda/node/services/statemachine/SingleThreadedStateMachineManager.kt b/node/src/main/kotlin/net/corda/node/services/statemachine/SingleThreadedStateMachineManager.kt index 9ce5a4980f..ab4de767c9 100644 --- a/node/src/main/kotlin/net/corda/node/services/statemachine/SingleThreadedStateMachineManager.kt +++ b/node/src/main/kotlin/net/corda/node/services/statemachine/SingleThreadedStateMachineManager.kt @@ -813,7 +813,9 @@ internal class SingleThreadedStateMachineManager( val checkpoint = currentState.checkpoint.copy(status = Checkpoint.FlowStatus.PAUSED, flowState = FlowState.Paused) val pausedFlow = NonResidentFlow( id, - checkpoint, flow.resultFuture, + checkpoint, + flow.resultFuture, + hospitalized = currentState.checkpoint.status == Checkpoint.FlowStatus.HOSPITALIZED, progressTracker = currentState.flowLogic.progressTracker ) val eventQueue = flow.fiber.transientValues.eventQueue