From 1d03751702ee501bd45c29d767445cf4ed04b275 Mon Sep 17 00:00:00 2001 From: vanjatomic Date: Thu, 31 Mar 2022 15:16:55 +0100 Subject: [PATCH] Add internal service hub --- constants.properties | 2 +- node/src/main/kotlin/net/corda/node/internal/AbstractNode.kt | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/constants.properties b/constants.properties index b2d1633b56..a63cb130d0 100644 --- a/constants.properties +++ b/constants.properties @@ -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.14-CONCLAVE-SNAPSHOT +cordaVersion=4.8.5.15-CONCLAVE-SNAPSHOT versionSuffix= gradlePluginsVersion=5.0.12 kotlinVersion=1.2.71 diff --git a/node/src/main/kotlin/net/corda/node/internal/AbstractNode.kt b/node/src/main/kotlin/net/corda/node/internal/AbstractNode.kt index cb943e5c83..169962d73d 100644 --- a/node/src/main/kotlin/net/corda/node/internal/AbstractNode.kt +++ b/node/src/main/kotlin/net/corda/node/internal/AbstractNode.kt @@ -1066,7 +1066,10 @@ abstract class AbstractNode(val configuration: NodeConfiguration, null } return clazz?.let { - EncryptedTransactionService(Class.forName(it).getDeclaredConstructor(CordaX500Name::class.java, ServiceHub::class.java).newInstance(configuration.myLegalName, servicesForResolution) as CordaEnclaveClient) + val internalServiceHub = ServicesForResolutionImpl(identityService, attachments, cordappProvider, networkParametersStorage, transactionStorage, EncryptedTransactionService()).also { + attachments.servicesForResolution = it + } + EncryptedTransactionService(Class.forName(it).getDeclaredConstructor(CordaX500Name::class.java, ServiceHub::class.java).newInstance(configuration.myLegalName, internalServiceHub) as CordaEnclaveClient) } ?: run { EncryptedTransactionService() }