From 79ecd034138e557635cd5706ae666c53635a3d5d Mon Sep 17 00:00:00 2001 From: Katarzyna Streich Date: Fri, 11 Nov 2016 10:19:33 +0000 Subject: [PATCH] Add serialization without refrences to all leaves of transaction (for Merkle tree calculation). --- core/src/main/kotlin/net/corda/core/serialization/Kryo.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/kotlin/net/corda/core/serialization/Kryo.kt b/core/src/main/kotlin/net/corda/core/serialization/Kryo.kt index cc17fb4145..98f49c8436 100644 --- a/core/src/main/kotlin/net/corda/core/serialization/Kryo.kt +++ b/core/src/main/kotlin/net/corda/core/serialization/Kryo.kt @@ -445,7 +445,7 @@ var Kryo.attachmentStorage: AttachmentStorage? //Used in Merkle tree calculation. It doesn't cover all the cases of unstable serialization format. fun extendKryoHash(kryo: Kryo): Kryo { return kryo.apply { - noReferencesWithin>() + setReferences(false) register(LinkedHashMap::class.java, MapSerializer()) register(HashMap::class.java, OrderedSerializer) }