mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-19 21:31:37 +00:00
common, core: fix goimports warning (#1972)
This commit is contained in:
parent
5190df67d8
commit
b1c239de97
1 changed files with 1 additions and 1 deletions
|
|
@ -42,7 +42,7 @@ func (d *ExpTimeoutDuration) GetTimeoutDuration(currentRound, highestRound types
|
|||
power := float64(1)
|
||||
// below statement must be true, just to prevent negative result
|
||||
if highestRound < currentRound {
|
||||
exp := min(uint8(currentRound-highestRound) - 1, d.maxExponent)
|
||||
exp := min(uint8(currentRound-highestRound)-1, d.maxExponent)
|
||||
power = math.Pow(d.base, float64(exp))
|
||||
}
|
||||
return d.duration * time.Duration(power)
|
||||
|
|
|
|||
Loading…
Reference in a new issue