Remove unused variables

This commit is contained in:
Julian Yap 2019-12-24 00:10:46 -10:00
parent f11f237f32
commit 43f49607e0

View file

@ -45,8 +45,7 @@ var (
// Diff algo constants. // Diff algo constants.
var ( var (
big88 = big.NewInt(88) big88 = big.NewInt(88)
bigMinus99 = big.NewInt(-99)
digishieldV3Config = &diffConfig{ digishieldV3Config = &diffConfig{
AveragingWindow: big.NewInt(21), AveragingWindow: big.NewInt(21),
@ -381,12 +380,6 @@ func CalcDifficulty(chain consensus.ChainReader, time uint64, parent *types.Head
return calcDifficultyFlux(chain, big.NewInt(int64(time)), big.NewInt(int64(parentTime)), parentNumber, parentDiff, parent) return calcDifficultyFlux(chain, big.NewInt(int64(time)), big.NewInt(int64(parentTime)), parentNumber, parentDiff, parent)
} }
// Some weird constants to avoid constant memory allocs for them.
var (
expDiffPeriod = big.NewInt(100000)
big10 = big.NewInt(10)
)
// calcDifficultyDigishieldV3 is the original difficulty adjustment algorithm. // calcDifficultyDigishieldV3 is the original difficulty adjustment algorithm.
// It returns the difficulty that a new block should have when created at time // It returns the difficulty that a new block should have when created at time
// given the parent block's time and difficulty. // given the parent block's time and difficulty.
@ -595,7 +588,6 @@ func (ubqhash *Ubqhash) Finalize(chain consensus.ChainReader, header *types.Head
// Some weird constants to avoid constant memory allocs for them. // Some weird constants to avoid constant memory allocs for them.
var ( var (
big2 = big.NewInt(2) big2 = big.NewInt(2)
big8 = big.NewInt(8)
big32 = big.NewInt(32) big32 = big.NewInt(32)
) )