|
|
@ -121,8 +121,8 @@ func TestDifficultyCalculators(t *testing.T) { |
|
|
|
bigFn func(time uint64, parent *types.Header) *big.Int |
|
|
|
bigFn func(time uint64, parent *types.Header) *big.Int |
|
|
|
u256Fn func(time uint64, parent *types.Header) *big.Int |
|
|
|
u256Fn func(time uint64, parent *types.Header) *big.Int |
|
|
|
}{ |
|
|
|
}{ |
|
|
|
{FrontierDifficultyCalulator, CalcDifficultyFrontierU256}, |
|
|
|
{FrontierDifficultyCalculator, CalcDifficultyFrontierU256}, |
|
|
|
{HomesteadDifficultyCalulator, CalcDifficultyHomesteadU256}, |
|
|
|
{HomesteadDifficultyCalculator, CalcDifficultyHomesteadU256}, |
|
|
|
{DynamicDifficultyCalculator(bombDelay), MakeDifficultyCalculatorU256(bombDelay)}, |
|
|
|
{DynamicDifficultyCalculator(bombDelay), MakeDifficultyCalculatorU256(bombDelay)}, |
|
|
|
} { |
|
|
|
} { |
|
|
|
time := header.Time + timeDelta |
|
|
|
time := header.Time + timeDelta |
|
|
|