Skip to content
This repository was archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
mistake comment in calc difficulty (#7154)
Browse files Browse the repository at this point in the history
  • Loading branch information
miyao-gmo authored and tomusdrw committed Dec 5, 2017
1 parent 7e3872f commit 3284020
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion ethcore/src/engines/authority_round/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,6 @@ impl Engine<EthereumMachine> for AuthorityRound {
}

fn populate_from_parent(&self, header: &mut Header, parent: &Header) {
// Chain scoring: total weight is sqrt(U256::max_value())*height - step
let new_difficulty = U256::from(U128::max_value()) + header_step(parent).expect("Header has been verified; qed").into() - self.step.load().into();
header.set_difficulty(new_difficulty);
}
Expand Down

0 comments on commit 3284020

Please sign in to comment.