Add serialization without refrences to all leaves of transaction (for Merkle tree calculation).

This commit is contained in:
Katarzyna Streich 2016-11-11 10:19:33 +00:00
parent 9d93eed56d
commit 79ecd03413

View File

@ -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<TransactionState<ContractState>>()
setReferences(false)
register(LinkedHashMap::class.java, MapSerializer())
register(HashMap::class.java, OrderedSerializer)
}