|
|
|
@ -52,8 +52,7 @@ func CalcDifficultyFrontierU256(time uint64, parent *types.Header) *big.Int { |
|
|
|
|
- num = block.number |
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
pDiff := uint256.NewInt() |
|
|
|
|
pDiff.SetFromBig(parent.Difficulty) // pDiff: pdiff
|
|
|
|
|
pDiff, _ := uint256.FromBig(parent.Difficulty) // pDiff: pdiff
|
|
|
|
|
adjust := pDiff.Clone() |
|
|
|
|
adjust.Rsh(adjust, difficultyBoundDivisor) // adjust: pDiff / 2048
|
|
|
|
|
|
|
|
|
@ -96,8 +95,7 @@ func CalcDifficultyHomesteadU256(time uint64, parent *types.Header) *big.Int { |
|
|
|
|
- num = block.number |
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
pDiff := uint256.NewInt() |
|
|
|
|
pDiff.SetFromBig(parent.Difficulty) // pDiff: pdiff
|
|
|
|
|
pDiff, _ := uint256.FromBig(parent.Difficulty) // pDiff: pdiff
|
|
|
|
|
adjust := pDiff.Clone() |
|
|
|
|
adjust.Rsh(adjust, difficultyBoundDivisor) // adjust: pDiff / 2048
|
|
|
|
|
|
|
|
|
|