good morning!!!!

Skip to content
Snippets Groups Projects
Commit 3a5a5599 authored by Gary Rong's avatar Gary Rong Committed by Péter Szilágyi
Browse files

consensus/ethash: fix byzantium difficulty comment typo (#15842)

parent 83d16574
No related branches found
No related tags found
No related merge requests found
......@@ -347,7 +347,7 @@ func calcDifficultyByzantium(time uint64, parent *types.Header) *big.Int {
if x.Cmp(bigMinus99) < 0 {
x.Set(bigMinus99)
}
// (parent_diff + parent_diff // 2048 * max(1 - (block_timestamp - parent_timestamp) // 10, -99))
// parent_diff + (parent_diff / 2048 * max((2 if len(parent.uncles) else 1) - ((timestamp - parent.timestamp) // 9), -99))
y.Div(parent.Difficulty, params.DifficultyBoundDivisor)
x.Mul(y, x)
x.Add(parent.Difficulty, x)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment