daml/daml-lf/kv-transaction-support
nickchapman-da 0251e930a2
Improve TX normalization. (#9341)
* Improve TX normalization.

Extend `foreachInExecutionOrder` / `foldInExecutionOrder` to handle rollback nodes. Two new args control behaviour when entering/leaving rollback nodes. Caller can control (with a bool) if the traversal continues under exercise/rollback nodes. Update existing callers.

Use `foldInExecutionOrder` to define `reachableNodeIds`. And test.

Use `foldInExecutionOrder` to improve the behaviour of `NormalizeTransaction` so that all nodes within a rollback node are dropped. Also completely reworking the spec/test for the new behaviour.

changelog_begin
changelog_end

* fix build
2021-04-07 12:49:54 +01:00
..
src Improve TX normalization. (#9341) 2021-04-07 12:49:54 +01:00
BUILD.bazel KV specific LF library (#9100) 2021-03-15 13:33:57 +01:00
README.md KV specific LF library (#9100) 2021-03-15 13:33:57 +01:00

The KV Daml-LF library

This package contains LF utilities specifically tailored for the KV integration kit. This library does not define a stable public API, and should not be used outside of the KV integration kit. Breaking changes to this library will be made without notice.