Skip to content

Commit

Permalink
feat: check_distance getter
Browse files Browse the repository at this point in the history
  • Loading branch information
gschup committed Oct 24, 2023
1 parent fa7a7ac commit d062ead
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/sessions/sync_test_session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,11 @@ impl<T: Config> SyncTestSession<T> {
self.max_prediction
}

/// Returns the check distance set on creation, i.e. the length of the simulated rollbacks
pub fn check_distance(&self) -> usize {
self.check_distance
}

/// Updates the `checksum_history` and checks if the checksum is identical if it already has been recorded once
fn checksums_consistent(&mut self, frame_to_check: Frame) -> bool {
// remove entries older than the `check_distance`
Expand Down

0 comments on commit d062ead

Please sign in to comment.