mistake comment in calc difficulty (#7154)

This commit is contained in:
Takehiro Miyao 2017-12-06 00:06:04 +09:00 committed by Tomasz Drwięga
parent 7e3872fddc
commit 3284020b04

View File

@ -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);
}