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

Support for verifying selection errors #2974

Merged
merged 6 commits into from
Oct 14, 2021

Conversation

jonathanknowles
Copy link
Contributor

@jonathanknowles jonathanknowles commented Oct 14, 2021

Issue Number

ADP-1037

Summary

This PR:

  • adds basic support for verifying selection errors (values of type SelectionError).
  • makes some simplifications to prop_performSelection.

Not included in this PR

For now, selection errors will always verify successfully with VerifySelectionErrorSuccess.
Future PRs will extend the definition of verifySelectionError.

Now that the responsibility for verifying `Selection` values lies
entirely with the `CoinSelection.verifySelection` function, we can
simplify these properties.
This avoids a future name conflict with types of values returned by
`verifySelectionError`.
We use the `verifySelectionError` function exported from module
`CoinSelection`.
We now have a pair of post conditions:

- For the case where creation of a selection succeeds.
- For the case where creation of a selection fails.
@jonathanknowles
Copy link
Contributor Author

bors r+

@iohk-bors
Copy link
Contributor

iohk-bors bot commented Oct 14, 2021

Build succeeded:

@iohk-bors iohk-bors bot merged commit fdc666b into master Oct 14, 2021
@iohk-bors iohk-bors bot deleted the jonathanknowles/adp-1037/verify-selection-errors branch October 14, 2021 05:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants