mirror of
https://github.com/corda/corda.git
synced 2025-03-14 00:06:45 +00:00
[CORDA-1605]: When one node in a transaction fails to respond, operator of initiating node needs to understand which node it is waiting for.
This commit is contained in:
parent
f99f483f0d
commit
acefaceaf6
@ -166,6 +166,8 @@ class MultiThreadedStateMachineManager(
|
||||
lifeCycle.transition(State.UNSTARTED, State.STARTED)
|
||||
}
|
||||
|
||||
override fun snapshot(): Set<FlowStateMachineImpl<*>> = concurrentBox.content.flows.values.map { it.fiber }.toSet()
|
||||
|
||||
override fun <A : FlowLogic<*>> findStateMachines(flowClass: Class<A>): List<Pair<A, CordaFuture<*>>> {
|
||||
return concurrentBox.content.flows.values.mapNotNull {
|
||||
flowClass.castIfPossible(it.fiber.logic)?.let { it to it.stateMachine.resultFuture }
|
||||
|
Loading…
x
Reference in New Issue
Block a user