Fix order of initialization

This commit is contained in:
vanjatomic 2022-03-30 15:50:52 +01:00
parent 19be27036e
commit 41496c9d89
2 changed files with 3 additions and 2 deletions

View File

@ -2,7 +2,7 @@
# because some versions here need to be matched by app authors in
# their own projects. So don't get fancy with syntax!
cordaVersion=4.8.5.11-CONCLAVE-SNAPSHOT
cordaVersion=4.8.5.12-CONCLAVE-SNAPSHOT
versionSuffix=
gradlePluginsVersion=5.0.12
kotlinVersion=1.2.71

View File

@ -294,6 +294,7 @@ abstract class AbstractNode<S>(val configuration: NodeConfiguration,
@Suppress("LeakingThis")
val keyManagementService = makeKeyManagementService(identityService).tokenize()
val services = ServiceHubInternalImpl().tokenize()
val encryptedTransactionService = makeEncryptedTransactionService().tokenize()
val servicesForResolution = ServicesForResolutionImpl(identityService, attachments, cordappProvider, networkParametersStorage, transactionStorage, encryptedTransactionService).also {
@ -335,7 +336,7 @@ abstract class AbstractNode<S>(val configuration: NodeConfiguration,
log.warn("MessagingService subscription error", it)
})
}
val services = ServiceHubInternalImpl().tokenize()
val checkpointStorage = DBCheckpointStorage(DBCheckpointPerformanceRecorder(services.monitoringService.metrics), platformClock)
@Suppress("LeakingThis")
val smm = makeStateMachineManager()