mirror of
https://github.com/corda/corda.git
synced 2024-12-20 05:28:21 +00:00
ENT-11975: Fixed merge errors.
This commit is contained in:
parent
5b812a56c2
commit
98d9263aba
@ -25,7 +25,11 @@ interface ServiceHubCoreInternal : ServiceHub {
|
|||||||
*/
|
*/
|
||||||
val notaryService: NotaryService?
|
val notaryService: NotaryService?
|
||||||
|
|
||||||
fun createTransactionsResolver(flow: ResolveTransactionsval rotatedKeys: RotatedKeys)
|
fun createTransactionsResolver(flow: ResolveTransactionsFlow): TransactionsResolver
|
||||||
|
|
||||||
|
val attachmentsClassLoaderCache: AttachmentsClassLoaderCache
|
||||||
|
|
||||||
|
val rotatedKeys: RotatedKeys
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Stores [SignedTransaction] and participant signatures without the notary signature in the local transaction storage,
|
* Stores [SignedTransaction] and participant signatures without the notary signature in the local transaction storage,
|
||||||
|
@ -88,7 +88,7 @@ abstract class AbstractVerifier(
|
|||||||
* Because we create a separate [LedgerTransaction] onto which we need to perform verification, it becomes important we don't verify the
|
* Because we create a separate [LedgerTransaction] onto which we need to perform verification, it becomes important we don't verify the
|
||||||
* wrong object instance. This class helps
|
* wrong object instance. This class helps
|
||||||
*/
|
*/
|
||||||
private class Validator(private val ltx: LedgerTransaction, private val transactionClassLoader: ClassLoader) {
|
private class Validator(private val ltx: LedgerTransaction, private val transactionClassLoader: ClassLoader, private val rotatedKeys: RotatedKeys) {
|
||||||
private val inputStates: List<TransactionState<*>> = ltx.inputs.map(StateAndRef<ContractState>::state)
|
private val inputStates: List<TransactionState<*>> = ltx.inputs.map(StateAndRef<ContractState>::state)
|
||||||
private val allStates: List<TransactionState<*>> = inputStates + ltx.references.map(StateAndRef<ContractState>::state) + ltx.outputs
|
private val allStates: List<TransactionState<*>> = inputStates + ltx.references.map(StateAndRef<ContractState>::state) + ltx.outputs
|
||||||
|
|
||||||
|
@ -480,12 +480,7 @@ interface AttachmentsClassLoaderCache {
|
|||||||
fun computeIfAbsent(key: AttachmentsClassLoaderKey, mappingFunction: Function<in AttachmentsClassLoaderKey, out SerializationContext>): SerializationContext
|
fun computeIfAbsent(key: AttachmentsClassLoaderKey, mappingFunction: Function<in AttachmentsClassLoaderKey, out SerializationContext>): SerializationContext
|
||||||
}
|
}
|
||||||
|
|
||||||
<<<<<<< HEAD
|
|
||||||
class AttachmentsClassLoaderCacheImpl(cacheFactory: NamedCacheFactory, override val rotatedKeys: RotatedKeys = CordaRotatedKeys.keys) : SingletonSerializeAsToken(), AttachmentsClassLoaderCache {
|
class AttachmentsClassLoaderCacheImpl(cacheFactory: NamedCacheFactory, override val rotatedKeys: RotatedKeys = CordaRotatedKeys.keys) : SingletonSerializeAsToken(), AttachmentsClassLoaderCache {
|
||||||
=======
|
|
||||||
class AttachmentsClassLoaderCacheImpl(cacheFactory: NamedCacheFactory) : SingletonSerializeAsToken(), AttachmentsClassLoaderCache {
|
|
||||||
|
|
||||||
>>>>>>> release/os/4.11
|
|
||||||
private class ToBeClosed(
|
private class ToBeClosed(
|
||||||
serializationContext: SerializationContext,
|
serializationContext: SerializationContext,
|
||||||
val classLoaderToClose: AutoCloseable,
|
val classLoaderToClose: AutoCloseable,
|
||||||
|
@ -317,18 +317,6 @@ abstract class AbstractNode<S>(val configuration: NodeConfiguration,
|
|||||||
cordappProvider = cordappProvider,
|
cordappProvider = cordappProvider,
|
||||||
attachments = attachments
|
attachments = attachments
|
||||||
).tokenize()
|
).tokenize()
|
||||||
val verifierFactoryService: VerifierFactoryService = if (djvmCordaSource != null) {
|
|
||||||
DeterministicVerifierFactoryService(djvmBootstrapSource, djvmCordaSource).apply {
|
|
||||||
log.info("DJVM sandbox enabled for deterministic contract verification.")
|
|
||||||
if (!configuration.devMode) {
|
|
||||||
log.info("Generating Corda classes for DJVM sandbox.")
|
|
||||||
generateSandbox()
|
|
||||||
}
|
|
||||||
tokenize()
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
BasicVerifierFactoryService()
|
|
||||||
}
|
|
||||||
private val attachmentsClassLoaderCache: AttachmentsClassLoaderCache = AttachmentsClassLoaderCacheImpl(cacheFactory, rotatedKeys).tokenize()
|
private val attachmentsClassLoaderCache: AttachmentsClassLoaderCache = AttachmentsClassLoaderCacheImpl(cacheFactory, rotatedKeys).tokenize()
|
||||||
val contractUpgradeService = ContractUpgradeServiceImpl(cacheFactory).tokenize()
|
val contractUpgradeService = ContractUpgradeServiceImpl(cacheFactory).tokenize()
|
||||||
val auditService = DummyAuditService().tokenize()
|
val auditService = DummyAuditService().tokenize()
|
||||||
|
Loading…
Reference in New Issue
Block a user