Skip to content

Comments

Replace a call to error in our FFI with a safe alternative#650

Merged
WhatisRT merged 2 commits intomasterfrom
andre/small-fix
Feb 3, 2025
Merged

Replace a call to error in our FFI with a safe alternative#650
WhatisRT merged 2 commits intomasterfrom
andre/small-fix

Conversation

@WhatisRT
Copy link
Collaborator

Description

There was no need to be unsafe here. Our code just happened to not match on that proof, but this could have broken at any time when doing refactoring. In the Consensus spec (which copies our code), this actually caused a crash.

Checklist

  • Commit sequence broadly makes sense and commits have useful messages
  • Any semantic changes to the specifications are documented in CHANGELOG.md
  • Code is formatted according to CONTRIBUTING.md
  • Self-reviewed the diff

There was no need to be unsafe here. Our code just happened to not
match on that proof, but this could have broken at any time when doing
refactoring. In the Consensus spec, this actually caused a crash.
@WhatisRT WhatisRT requested a review from Soupstraw January 23, 2025 12:57
Co-authored-by: Joosep Jääger <joosep.jaager@gmail.com>
@WhatisRT WhatisRT merged commit 64acefe into master Feb 3, 2025
4 of 8 checks passed
@WhatisRT WhatisRT deleted the andre/small-fix branch February 3, 2025 11:05
github-actions bot added a commit that referenced this pull request Feb 3, 2025
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