Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aeyakovenko committed Jan 26, 2019
1 parent c80d919 commit d45ef86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/replay_stage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ impl ReplayStage {
let mut blocks = vec![];
for e in entries {
let current = e.tick_height / TICKS_PER_BLOCK;
let prev = current - 1;
let prev = if current == 0 { 0 } else { current - 1 };
if blocks.is_empty() {
blocks.push((vec![], current, prev));
}
Expand Down

0 comments on commit d45ef86

Please sign in to comment.