prep template for fixed size hashes

This commit is contained in:
obscuren
2015-03-18 14:15:48 +01:00
parent 0a1eeca41e
commit 48dd601de0
2 changed files with 50 additions and 2 deletions

View File

@ -37,8 +37,8 @@ func CalcDifficulty(block, parent *types.Header) *big.Int {
diff.Sub(parent.Difficulty, adjust)
}
if diff.Cmp(GenesisDiff) < 0 {
return GenesisDiff
if diff.Cmp(min) < 0 {
return min
}
return diff