Skip to content

Commit

Permalink
qf2
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisfranko committed Sep 24, 2015
1 parent 3cb6e77 commit bfc916c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/chain_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,12 @@ var (
// given the parent block's time and difficulty.
func CalcDifficulty(time, parentTime uint64, parentNumber, parentDiff *big.Int) *big.Int {
diff := new(big.Int)
adjust := new(big.Int)

if parentNumber.Cmp(params.HardFork1) < 0 {
adjust := new(big.Int).Div(parentDiff, params.DifficultyBoundDivisor)
adjust = new(big.Int).Div(parentDiff, params.DifficultyBoundDivisor)
} else {
adjust := new(big.Int).Div(parentDiff, params.DifficultyBoundDivisor2)
adjust = new(big.Int).Div(parentDiff, params.DifficultyBoundDivisor2)
}

bigTime := new(big.Int)
Expand Down

0 comments on commit bfc916c

Please sign in to comment.