Small fixes (#2126)

This commit is contained in:
Serban Iorga
2023-05-10 17:26:52 +03:00
committed by Bastian Köcher
parent d80d2a5039
commit d479232c34
3 changed files with 3 additions and 4 deletions
@@ -47,7 +47,7 @@ pub struct BaseMessagesProofInfo {
impl BaseMessagesProofInfo {
/// Returns true if `bundled_range` continues the `0..=best_stored_nonce` range.
fn appends_to_stored_nonce(&self) -> bool {
*self.bundled_range.start() == self.best_stored_nonce + 1
Some(*self.bundled_range.start()) == self.best_stored_nonce.checked_add(1)
}
}