From 48dd601de0ffea4e1bf57a8923f2a6126553b575 Mon Sep 17 00:00:00 2001 From: obscuren Date: Wed, 18 Mar 2015 14:15:48 +0100 Subject: prep template for fixed size hashes --- core/chain_manager.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core') 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 -- cgit