withAttachmentsClassLoaderContext

fun <T> withAttachmentsClassLoaderContext(attachments: List<Attachment>, params: NetworkParameters, txId: SecureHash, isAttachmentTrusted: (Attachment) -> Boolean, parent: ClassLoader = ClassLoader.getSystemClassLoader(), attachmentsClassLoaderCache: AttachmentsClassLoaderCache?, block: (SerializationContext) -> T): T

Runs the given block with serialization execution context set up with a (possibly cached) attachments classloader.

Parameters

txId

The transaction ID that triggered this request; it's unused except for error messages and exceptions that can occur during setup.