Fix signed comparison in ElectrumClient#4590
Conversation
`GetHistoryRes::height` from electrum-client is a *signed* integer. Here we first check for `<= 0` *before* casting to `u32`. Signed-off-by: Elias Rohrer <dev@tnull.de>
|
I've assigned @valentinewallace as a reviewer! |
|
I've reviewed the full diff and examined all related
The other No issues found. |
|
👋 The first review has been submitted! Do you think this PR is ready for a second reviewer? If so, click here to assign a second reviewer. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4590 +/- ##
==========================================
- Coverage 87.08% 86.23% -0.86%
==========================================
Files 161 159 -2
Lines 109255 109103 -152
Branches 109255 109103 -152
==========================================
- Hits 95147 94083 -1064
- Misses 11627 12410 +783
- Partials 2481 2610 +129
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
GetHistoryRes::heightfrom electrum-client is a signed integer. Here we first check for<= 0before casting tou32.