Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tune tx trace spec #1695

Open
wants to merge 21 commits into
base: master
Choose a base branch
from
Open

Tune tx trace spec #1695

wants to merge 21 commits into from

Commits on Oct 27, 2024

  1. Add coverage to prop_runActions

    This will ensure we have good coverage of the actual model test later.
    For now, the efficiency is way to low to checkCoverage on it too (it
    would go up to 6400 tests like prop_traces).
    ch1bo committed Oct 27, 2024
    Configuration menu
    Copy the full SHA
    ad0715a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    523e2a1 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    85405f3 View commit details
    Browse the repository at this point in the history
  4. WIP: Draft a plan

    Changing the way we generate actions will help in guiding the generators
    based on "what an honest node would approve" and reduce discarded
    values / improve coverage.
    ch1bo committed Oct 27, 2024
    Configuration menu
    Copy the full SHA
    495ae2e View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    a3f63da View commit details
    Browse the repository at this point in the history
  6. Only use existing genSnapshot when producing new snapshots

    Otherwise we simpliy pick from the models knownSnapshots
    ch1bo committed Oct 27, 2024
    Configuration menu
    Copy the full SHA
    7e7003b View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    20913ca View commit details
    Browse the repository at this point in the history
  8. Revert "Only keep knownSnapshots and derive latest version / number f…

    …rom it"
    
    This reverts commit b92f051.
    ch1bo committed Oct 27, 2024
    Configuration menu
    Copy the full SHA
    bd42c46 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    31b614f View commit details
    Browse the repository at this point in the history
  10. Allow for decrement with empty utxo to decommit

    The decrement validator allows for this and consequently this is a
    possible scenario: An adversary can construct decrement transactions
    with any snapshot we signed.
    ch1bo committed Oct 27, 2024
    Configuration menu
    Copy the full SHA
    8b03153 View commit details
    Browse the repository at this point in the history
  11. Generate Nothing if realWorldModelUTxO is empty

    This is more consistent with what the off-chain code does.
    ch1bo committed Oct 27, 2024
    Configuration menu
    Copy the full SHA
    9c6da41 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    1280f85 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    272268b View commit details
    Browse the repository at this point in the history
  14. Make negative decrements fail gracefully

    Also disables some preconditions to decide whether we want to test this.
    ch1bo committed Oct 27, 2024
    Configuration menu
    Copy the full SHA
    3d6ae8f View commit details
    Browse the repository at this point in the history
  15. Fix excessive discarding by generating better snapshots

    This also makes the output easier to read and removes several
    preconditions as we now expect construction to fail if we try to
    decrement too much.
    ch1bo committed Oct 27, 2024
    Configuration menu
    Copy the full SHA
    f8312ae View commit details
    Browse the repository at this point in the history
  16. Small tuning on generators

    ch1bo committed Oct 27, 2024
    Configuration menu
    Copy the full SHA
    cdebb64 View commit details
    Browse the repository at this point in the history
  17. Model toDecommit evolution as we would expect it

    This is reusing the models pendingDecommit for this purpose. However, it
    would be cleaner to separate the model states between Open and Closed.
    ch1bo committed Oct 27, 2024
    Configuration menu
    Copy the full SHA
    d105327 View commit details
    Browse the repository at this point in the history
  18. Fix nextState of Close/Contest

    ch1bo committed Oct 27, 2024
    Configuration menu
    Copy the full SHA
    3a150cd View commit details
    Browse the repository at this point in the history
  19. Futher simplify ModelUTxO

    It is a list of A-E elements only where shuffling of the elements
    represents off-chain transactions that maintain balance.
    ch1bo committed Oct 27, 2024
    Configuration menu
    Copy the full SHA
    d96d55c View commit details
    Browse the repository at this point in the history
  20. Drop old, commented code

    ch1bo committed Oct 27, 2024
    Configuration menu
    Copy the full SHA
    ea603b9 View commit details
    Browse the repository at this point in the history
  21. Enable coverage check on main property

    Using lower Confidence values, we should not see way very long tests at
    the cost of occasional false positives. In such cases, the actual
    coverage numbers and "interesting values" test should give an indication
    whether it was rightfully failing or would have taken just very long.
    ch1bo committed Oct 27, 2024
    Configuration menu
    Copy the full SHA
    461282e View commit details
    Browse the repository at this point in the history