mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
Remove unused variables
This commit is contained in:
parent
f11f237f32
commit
43f49607e0
1 changed files with 1 additions and 9 deletions
|
|
@ -46,7 +46,6 @@ var (
|
|||
// Diff algo constants.
|
||||
var (
|
||||
big88 = big.NewInt(88)
|
||||
bigMinus99 = big.NewInt(-99)
|
||||
|
||||
digishieldV3Config = &diffConfig{
|
||||
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)
|
||||
}
|
||||
|
||||
// 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.
|
||||
// It returns the difficulty that a new block should have when created at time
|
||||
// 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.
|
||||
var (
|
||||
big2 = big.NewInt(2)
|
||||
big8 = big.NewInt(8)
|
||||
big32 = big.NewInt(32)
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue