Add deposit processing, fix clippy lints

This commit is contained in:
Paul Hauner
2019-03-07 16:15:38 +11:00
parent 195cb16a41
commit 15e4aabd8a
11 changed files with 184 additions and 26 deletions

View File

@@ -379,7 +379,7 @@ impl<T: ClientDB + Sized> ForkChoice for BitwiseLMDGhost<T> {
trace!("Current Step: {}", step);
if let Some(clear_winner) = self.get_clear_winner(
&latest_votes,
block_height - (block_height % u64::from(step)) + u64::from(step),
block_height - (block_height % step) + step,
spec,
) {
current_head = clear_winner;