- let snapshot_sync_factors = [1, 2, 3, 4, 5, 6, 7, 14, 21, u64::MAX];
+ let mut snapshot_scopes = vec![];
+ { // double the coefficient until it reaches the maximum (limited) snapshot scope
+ let mut current_scope = snapshot_interval;
+ loop {
+ snapshot_scopes.push(current_scope);
+ if current_scope >= config::MAX_SNAPSHOT_SCOPE as u64 {
+ snapshot_scopes.push(u64::MAX);
+ break;
+ }
+
+ // double the current factor
+ current_scope <<= 1;
+ }
+ }