Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rewrite of the model part and tuning of the TxTrace stateful property-based test suite comprised of: * Allow for empty decrements, but identify `DecrementValueNegative` errors when constructing transactions. * Added coverage to model test `TxTrace/all valid transactions` * Changed how snapshots are generated and modeled: Instead of generating snapshots ad-hoc, we create them in a dedicated `NewSnapshot` action and only pick from a list of `knownSnapshots` when generating `Close` and other actions. This resembles better what is actually happening in the real world, where the adversary could only pick from a list of plausible snapshots. It also makes the `arbitraryAction` simpler and requires less `precondition`s. Lastly, this also results in less discarded values as was the original motivation in #1524 --- <!-- Consider each and tick it off one way or the other --> * [x] CHANGELOG update not needed * [x] Documentation update not needed * [x] Haddocks updated * [x] No new TODOs introduced or explained herafter - Three very minor `XXX` comments how further refactoring could be done in `TxTrace`
- Loading branch information