-
Notifications
You must be signed in to change notification settings - Fork 38.7k
refactor: Make more transaction size variables signed #28059
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
Conversation
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ReviewsSee the guideline for information on the review process.
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update. |
|
Not sure. The other types are 64 bit, so this will overflow eventually |
|
Are you still working on this? |
Since the recent push, the |
src/txmempool.cpp
Outdated
|
|
||
| util::Result<CTxMemPool::setEntries> CTxMemPool::CalculateAncestorsAndCheckLimits( | ||
| size_t entry_size, | ||
| int32_t entry_size, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No it is not. this is still int32_t
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Updated.
This change gets rid of `static_cast`s and compiler warnings.
int32_t|
lgtm ACK 92de74e 🥔 Show signatureSignature: |
glozow
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK 92de74e
This PR is a continuation of #23962 and it:
int32_ttype for most transaction size/weight values #23962 (comment),