mirror of
https://github.com/corda/corda.git
synced 2024-12-19 04:57:58 +00:00
Add serialization without refrences to all leaves of transaction (for Merkle tree calculation).
This commit is contained in:
parent
9d93eed56d
commit
79ecd03413
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user