aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-03-18 21:15:48 +0800
committerobscuren <geffobscura@gmail.com>2015-03-18 21:15:58 +0800
commit48dd601de0ffea4e1bf57a8923f2a6126553b575 (patch)
tree95194c294a6f4eabe9c178da2c8b4c199e1662e4 /core
parent0a1eeca41e6ba5920ba65d9b41654768299bc7e3 (diff)
downloadgo-tangerine-48dd601de0ffea4e1bf57a8923f2a6126553b575.tar
go-tangerine-48dd601de0ffea4e1bf57a8923f2a6126553b575.tar.gz
go-tangerine-48dd601de0ffea4e1bf57a8923f2a6126553b575.tar.bz2
go-tangerine-48dd601de0ffea4e1bf57a8923f2a6126553b575.tar.lz
go-tangerine-48dd601de0ffea4e1bf57a8923f2a6126553b575.tar.xz
go-tangerine-48dd601de0ffea4e1bf57a8923f2a6126553b575.tar.zst
go-tangerine-48dd601de0ffea4e1bf57a8923f2a6126553b575.zip
prep template for fixed size hashes
Diffstat (limited to 'core')
-rw-r--r--core/chain_manager.go4
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