Skip to content

Commit

Permalink
Lower minimum difficulty (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
TuitionCoin authored Apr 29, 2018
1 parent 9c24ee5 commit 4e449e2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion consensus/ethash/consensus.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions params/protocol_params.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
)

0 comments on commit 4e449e2

Please sign in to comment.