Waste is a CAmount, which is an int64_t. This will overflow an int, so best_waste should also be a CAmount.
Fixes #34936
Waste is a CAmount, which is an int64_t. This will overflow an int, so
`best_waste` should also be a `CAmount`.
<!--e57a25ab6845829454e8d69fc972939a-->
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
<!--021abf342d371248e50ceaed478a90ca-->
See the guideline for information on the review process.
| Type | Reviewers |
|---|---|
| ACK | murchandamus, furszy |
If your review is incorrectly listed, please copy-paste <code><!--meta-tag:bot-skip--></code> into the comment that the bot should ignore.
<!--5faf32d7da4f0f540f40219e4f7537a3-->
ACK 890a09b1e49925315a5636f29cc5af36928fe092
best waste should be 2100000000000000 at most if in sats, right? Makes sense that this is larger than int max of 2,147,483,647.