v4.0: Bank::get_slot_history() is fallible (backport of #12598)#12629
Conversation
|
Cherry-pick of ddb592b has failed: To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally |
|
@Mergifyio rebase |
☑️ Nothing to do, the required conditions are not metDetails
|
|
In v4.0, do we now bump the version as the final commit before tagging? Compared to v3.1, we bump as the first commit after a tag. Here's the current error: |
#12648 should fix the check to match it the new procedures |
|
I think now we're waiting on #12663. |
|
@Mergifyio rebase |
(cherry picked from commit ddb592b) # Conflicts: # runtime/src/snapshot_bank_utils.rs
✅ Branch has been successfully rebased |
f799322 to
7db9941
Compare
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## v4.0 #12629 +/- ##
=========================================
- Coverage 82.9% 82.9% -0.1%
=========================================
Files 842 842
Lines 317968 317981 +13
=========================================
+ Hits 263856 263858 +2
- Misses 54112 54123 +11 🚀 New features to boost your workflow:
|
Problem
Bank::get_slot_history()double unwraps, which causes a panic on error. Instead, let the caller decide if this error is fatal or not.Summary of Changes
Bank::get_slot_history()return an Option.unwrap()(this maintains the current behavior--happy to adjust!)This is an automatic backport of pull request Bank::get_slot_history() is fallible #12598 done by Mergify.