diff options
author | obscuren <geffobscura@gmail.com> | 2015-03-18 21:15:48 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-03-18 21:15:58 +0800 |
commit | 48dd601de0ffea4e1bf57a8923f2a6126553b575 (patch) | |
tree | 95194c294a6f4eabe9c178da2c8b4c199e1662e4 /core/chain_manager.go | |
parent | 0a1eeca41e6ba5920ba65d9b41654768299bc7e3 (diff) | |
download | dexon-48dd601de0ffea4e1bf57a8923f2a6126553b575.tar dexon-48dd601de0ffea4e1bf57a8923f2a6126553b575.tar.gz dexon-48dd601de0ffea4e1bf57a8923f2a6126553b575.tar.bz2 dexon-48dd601de0ffea4e1bf57a8923f2a6126553b575.tar.lz dexon-48dd601de0ffea4e1bf57a8923f2a6126553b575.tar.xz dexon-48dd601de0ffea4e1bf57a8923f2a6126553b575.tar.zst dexon-48dd601de0ffea4e1bf57a8923f2a6126553b575.zip |
prep template for fixed size hashes
Diffstat (limited to 'core/chain_manager.go')
-rw-r--r-- | core/chain_manager.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/chain_manager.go b/core/chain_manager.go index 5316a3423..0251f7c72 100644 --- a/core/chain_manager.go +++ b/core/chain_manager.go @@ -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 |