mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
eth/catalyst: fix block times and difficulty growth estimation
This commit is contained in:
parent
43bf9de67b
commit
ce76139fed
1 changed files with 1 additions and 1 deletions
|
|
@ -657,7 +657,7 @@ func (api *ConsensusAPI) heartbeat() {
|
||||||
if deltaTime > 0 {
|
if deltaTime > 0 {
|
||||||
growth := deltaDiff / deltaTime
|
growth := deltaDiff / deltaTime
|
||||||
left := new(big.Int).Sub(ttd, htd)
|
left := new(big.Int).Sub(ttd, htd)
|
||||||
eta = time.Duration(new(big.Int).Div(left, new(big.Int).SetUint64(growth)).Uint64()) * time.Second
|
eta = time.Duration(new(big.Int).Div(left, new(big.Int).SetUint64(growth+1)).Uint64()) * time.Second
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
message := "Merge is configured, but previously seen beacon client is offline. Please ensure it is operational before the transition arrives!"
|
message := "Merge is configured, but previously seen beacon client is offline. Please ensure it is operational before the transition arrives!"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue