diff --git a/consensus/ethash/consensus.go b/consensus/ethash/consensus.go index 95cc7fdfb272..62c869d2ab7b 100644 --- a/consensus/ethash/consensus.go +++ b/consensus/ethash/consensus.go @@ -344,7 +344,7 @@ func calcDifficultyByzantium(time uint64, parent *types.Header) *big.Int { x.Sub(big2, x) } if x.Cmp(big0) == 0 { - x.Sub(x,big1); + x.Sub(x,big1) } // max((2 if len(parent_uncles) else 1) - (block_timestamp - parent_timestamp) // 9, -99) if x.Cmp(bigMinus99) < 0 { diff --git a/params/protocol_params.go b/params/protocol_params.go index d8c00f015fda..2861921cec25 100644 --- a/params/protocol_params.go +++ b/params/protocol_params.go @@ -81,7 +81,7 @@ const ( var ( DifficultyBoundDivisor = big.NewInt(2048) // The bound divisor of the difficulty, used in the update calculations. - GenesisDifficulty = big.NewInt(8192) // Difficulty of the Genesis block. - MinimumDifficulty = big.NewInt(8192) // The minimum that the difficulty may ever be. + GenesisDifficulty = big.NewInt(2048) // 8192 Difficulty of the Genesis block. + MinimumDifficulty = big.NewInt(2048) // 8192 The minimum that the difficulty may ever be. DurationLimit = big.NewInt(13) // The decision boundary on the blocktime duration used to determine whether difficulty should go up or not. )