mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-24 13:46:43 +00:00
quickfix
This commit is contained in:
parent
78c48ad903
commit
3cb6e7745c
1 changed files with 1 additions and 1 deletions
|
|
@ -41,7 +41,7 @@ var (
|
|||
func CalcDifficulty(time, parentTime uint64, parentNumber, parentDiff *big.Int) *big.Int {
|
||||
diff := new(big.Int)
|
||||
|
||||
if parentNumber <= params.HardFork1 {
|
||||
if parentNumber.Cmp(params.HardFork1) < 0 {
|
||||
adjust := new(big.Int).Div(parentDiff, params.DifficultyBoundDivisor)
|
||||
} else {
|
||||
adjust := new(big.Int).Div(parentDiff, params.DifficultyBoundDivisor2)
|
||||
|
|
|
|||
Loading…
Reference in a new issue