Skip to content
This repository was archived by the owner on Jun 26, 2023. It is now read-only.
This repository was archived by the owner on Jun 26, 2023. It is now read-only.

Support stake change actions in the tests #149

Description

@dnadales

The property tests do not have actions for changing the stake distributions. We do test with different stake distributions in each test run, but these are constant throughout the trace.

Module Test.Cardano.Ledger.Update.Properties.UpdateSUT contains the actions supported by the SUT:

  data SUTAct UpdateSUT
    = TickAct
    -- ^ Tick for one slot. We do not make the number of slots variable since
    -- this complicates writing trace properties of the update mechanism.
    | UpdateAct (Update.Payload MockSIP MockImpl)

We need to add an action here for changing the stake (e.g. moving stake from one participant to another). After adding this action we will need to change generators and elaborators.

Metadata

Metadata

Assignees

No one assigned

    Labels

    executable-spec ⚙️Issues related to the executable specificationvalidation-criteriaWriting, formalizing, proving and/or testing properties that the update mechanism should satisfy

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions