mirror of
https://github.com/corda/corda.git
synced 2025-03-14 00:06:45 +00:00
Fix merge
This commit is contained in:
parent
eb801d40b8
commit
6dc778e404
@ -55,7 +55,7 @@ interface Cordapp {
|
||||
val allFlows: List<Class<out FlowLogic<*>>>
|
||||
val jarPath: URL
|
||||
val cordappClasses: List<String>
|
||||
val info: Info,
|
||||
val info: Info
|
||||
val jarHash: SecureHash.SHA256
|
||||
|
||||
/**
|
||||
|
@ -108,7 +108,9 @@ class CordappLoader private constructor(private val cordappJarPaths: List<Restri
|
||||
serializationCustomSerializers = listOf(),
|
||||
customSchemas = setOf(),
|
||||
jarPath = ContractUpgradeFlow.javaClass.protectionDomain.codeSource.location, // Core JAR location
|
||||
info = CordappImpl.Info("corda-core", versionInfo.vendor, versionInfo.releaseVersion)
|
||||
info = CordappImpl.Info("corda-core", versionInfo.vendor, versionInfo.releaseVersion),
|
||||
allFlows = coreRPCFlows,
|
||||
jarHash = SecureHash.allOnesHash
|
||||
)
|
||||
|
||||
companion object {
|
||||
@ -255,11 +257,9 @@ class CordappLoader private constructor(private val cordappJarPaths: List<Restri
|
||||
findPlugins(it),
|
||||
findSerializers(scanResult),
|
||||
findCustomSchemas(scanResult),
|
||||
url,
|
||||
info,
|
||||
name)
|
||||
findAllFlows(scanResult),
|
||||
it.url,
|
||||
info,
|
||||
getJarHash(it.url)
|
||||
)
|
||||
}
|
||||
|
@ -527,7 +527,8 @@ class MultiThreadedStateMachineManager(
|
||||
flowLogic.stateMachine = flowStateMachineImpl
|
||||
val frozenFlowLogic = (flowLogic as FlowLogic<*>).serialize(context = checkpointSerializationContext!!)
|
||||
|
||||
val initialCheckpoint = Checkpoint.create(invocationContext, flowStart, flowLogic.javaClass, frozenFlowLogic, ourIdentity, deduplicationSeed).getOrThrow()
|
||||
val flowCorDappVersion= FlowStateMachineImpl.createSubFlowVersion(serviceHub.cordappProvider.getCordappForFlow(flowLogic), serviceHub.myInfo.platformVersion)
|
||||
val initialCheckpoint = Checkpoint.create(invocationContext, flowStart, flowLogic.javaClass, frozenFlowLogic, ourIdentity, deduplicationSeed, flowCorDappVersion).getOrThrow()
|
||||
val startedFuture = openFuture<Unit>()
|
||||
val initialState = StateMachineState(
|
||||
checkpoint = initialCheckpoint,
|
||||
|
Loading…
x
Reference in New Issue
Block a user