Skip to content

Conversation

@JayWhite2357
Copy link

This PR resolves #20161.
This is done by ensuring that the debug profile behaves like release by wrapping arithmetic.

@JayWhite2357
Copy link
Author

JayWhite2357 commented Dec 6, 2025

I'm happy to change this PR as desired. Saturation arithmetic may make more sense, but I didn't want to dig into the details too far. As it is, it should align debug with release.

input
.limiter
.deleted_entries_limit_left()
.map(|left| start.wrapping_add(left as u64).wrapping_sub(1)),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this be saturating add

@joshieDo @shekhirin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

TransactionLookup::prune panics in debug profile

2 participants