From 70681cdcc7491d51ed42db10886ff7e3b78da5f6 Mon Sep 17 00:00:00 2001 From: josecoll Date: Sat, 18 Nov 2017 11:43:26 +0000 Subject: [PATCH] Comment out unused code for now (uncompilable due to breaking open source code change) --- .../enclaves/txverify/KryoVerifierSerializationScheme.kt | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/verify-enclave/src/main/kotlin/com/r3/enclaves/txverify/KryoVerifierSerializationScheme.kt b/verify-enclave/src/main/kotlin/com/r3/enclaves/txverify/KryoVerifierSerializationScheme.kt index 455be7ae40..33acff962f 100644 --- a/verify-enclave/src/main/kotlin/com/r3/enclaves/txverify/KryoVerifierSerializationScheme.kt +++ b/verify-enclave/src/main/kotlin/com/r3/enclaves/txverify/KryoVerifierSerializationScheme.kt @@ -22,10 +22,11 @@ private class KryoVerifierSerializationScheme : AbstractKryoSerializationScheme( */ private companion object { init { - SerializationDefaults.SERIALIZATION_FACTORY = SerializationFactoryImpl().apply { - registerScheme(KryoVerifierSerializationScheme()) - } - SerializationDefaults.P2P_CONTEXT = KRYO_P2P_CONTEXT + // TODO: SerializationDefaults are now global singletons. Revisit this initialisation block. +// SerializationDefaults.SERIALIZATION_FACTORY = SerializationFactoryImpl().apply { +// registerScheme(KryoVerifierSerializationScheme()) +// } +// SerializationDefaults.P2P_CONTEXT = KRYO_P2P_CONTEXT } } }