Skip to content

Commit

Permalink
Update base_layer/core/src/proof_of_work/lwma.rs
Browse files Browse the repository at this point in the history
Co-Authored-By: Yuko Roodt <42933690+neonknight64@users.noreply.github.com>
  • Loading branch information
SWvheerden and neonknight64 authored Nov 5, 2019
1 parent def5b79 commit 9902e0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base_layer/core/src/proof_of_work/lwma.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ impl DifficultyAjustment for LWMA {
self.timestamps.push_back(timestamp);
self.cumulative_difficulties.push_back(cum_difficulty);
if self.timestamps.len() as u64 > BLOCK_WINDOW + 1 {
self.timestamps.remove(0);
self.timestamps.pop_front();
self.cumulative_difficulties.pop_front();
}
}
Expand Down

0 comments on commit 9902e0a

Please sign in to comment.