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

Fix "UTxO entry too small" check. #2722

Merged
merged 1 commit into from
Apr 4, 2022
Merged

Fix "UTxO entry too small" check. #2722

merged 1 commit into from
Apr 4, 2022

Conversation

nc6
Copy link
Contributor

@nc6 nc6 commented Apr 4, 2022

PR #2644 refactored these checks, but also made the change from not $ Val.pointwise (>=) to Val.pointwise (<). However, since pointwise
is basically acting as all here, these checks are not equivalent. The
former will return True on e.g. [0, 0] [0, 1], but the latter will
not (since 0 is not less than 0).

This commit restores the original test.

PR #2644 refactored these checks, but also made the change from `not $
Val.pointwise (>=)` to `Val.pointwise (<)`. However, since `pointwise`
is basically acting as `all` here, these checks are not equivalent. The
former will return `True` on e.g. `[0, 0] [0, 1]`, but the latter will
not (since 0 is not less than 0).

This commit restores the original test.
@nc6 nc6 requested a review from lehins April 4, 2022 10:02
@lehins lehins merged commit 70dbfc9 into master Apr 4, 2022
@iohk-bors iohk-bors bot deleted the nc/small-utxo-check branch April 4, 2022 11:32
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