Skip to content

Usage of asserts  #362

Open
Open
@lehins

Description

@lehins

There are a few places in KES implementation where Control.Exception.assert is being used. This has no affect since asserts will never get triggered, because they are removed by the compiler, unless compiled with either -O0 or -fno-ignore-asserts, which is never the case in this repo.

So, we need figure out whats the purpose of those asserts and either remove them in favor of some other mode of failure or make them count with a cabal flag or something. A good example on how latter can be achieved is in the consensus repo.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions