mirror of
https://github.com/corda/corda.git
synced 2024-12-23 23:02:29 +00:00
Mock node uses hard coded EnclaveClient instance
This commit is contained in:
parent
a37486c6d7
commit
dc840008f2
@ -289,17 +289,11 @@ open class MockServices private constructor(
|
|||||||
}
|
}
|
||||||
|
|
||||||
internal fun makeEncryptedTransactionService(cordappLoader: CordappLoader, initialIdentity: TestIdentity): EncryptedTransactionService {
|
internal fun makeEncryptedTransactionService(cordappLoader: CordappLoader, initialIdentity: TestIdentity): EncryptedTransactionService {
|
||||||
val clazz = cordappLoader.cordapps
|
|
||||||
.map {
|
val clazz = try {
|
||||||
it.cordappClasses
|
Class.forName("cbdc.r3.corda.conclave.client.CBDCEnclaveClient").name
|
||||||
}
|
}catch(e: Exception) {
|
||||||
.flatten()
|
null
|
||||||
.firstOrNull {
|
|
||||||
try {
|
|
||||||
it.contains("EnclaveClient") && Class.forName(it).interfaces.contains(CordaEnclaveClient::class.java)
|
|
||||||
} catch (e: NoClassDefFoundError) {
|
|
||||||
false
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return clazz?.let {
|
return clazz?.let {
|
||||||
|
Loading…
Reference in New Issue
Block a user