-
Notifications
You must be signed in to change notification settings - Fork 951
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
ListSnapshots and LoadSnapshotChunk methods #3386
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3386 +/- ##
==========================================
+ Coverage 53.92% 53.96% +0.03%
==========================================
Files 317 318 +1
Lines 107575 107912 +337
==========================================
+ Hits 58011 58230 +219
- Misses 49564 49682 +118 ☔ View full report in Codecov by Sentry. |
let chunk_start = if chunk == 0 { | ||
0usize | ||
} else { | ||
let prev = checked!(usize::try_from(chunk).unwrap() - 1).unwrap(); |
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.
we should be careful with these checked arithmetic unwraps. in theory cometbft won't provide bogus values, but they could crash the ledger
Co-authored-by: Tiago Carvalho <sugoiuguu@tfwno.gf>
Co-authored-by: Tiago Carvalho <sugoiuguu@tfwno.gf>
b35b659
to
dbf48a2
Compare
dbf48a2
to
f79afd1
Compare
* bat/feat/list-and-offer-snapshots: rebasing tinies Added changelog
* origin/bat/feat/list-and-offer-snapshots: rebasing tinies Added changelog
Describe your changes
Addresses the third point and part of the fourth point of Issue #3307
ListSnapshots
ABCI callLoadSnapshotChunk
ABCI callIndicate on which release or other PRs this topic is based on
Built on top of #3383
Checklist before merging to
draft