daml/daml-lf/engine
Jussi Mäki b57ef848aa
Use TreeMap for storing transaction nodes (#3418)
* Use TreeMap for storing transaction nodes

Going forward we require deterministic serialization for transaction nodes.
This PR switches the `Transaction.nodes` to use a TreeMap instead of HashMap,
which gives us deterministic serialization order for the transaction nodes.

An alternative would be to sort the transaction nodes when serializing, but
I feel avoiding HashMap altogether is the safer option as this may bite us
elsewhere as well (e.g. tests, new serialization code, etc.).

* Address review

* Remove unused import
2019-11-12 13:55:03 +01:00
..
src Use TreeMap for storing transaction nodes (#3418) 2019-11-12 13:55:03 +01:00
BUILD.bazel Replace bazel-deps by rules_jvm_external (#3253) 2019-10-28 13:53:14 +01:00