mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 15:16:43 +00:00
Update eth/catalyst/simulated_beacon.go
Co-authored-by: Marius van der Wijden <m.vanderwijden@live.de>
This commit is contained in:
parent
87d35f0045
commit
788b01ac75
1 changed files with 1 additions and 1 deletions
|
|
@ -126,7 +126,7 @@ func NewSimulatedBeacon(period uint64, feeRecipient common.Address, eth *eth.Eth
|
|||
}
|
||||
|
||||
// cap the dev mode period to a reasonable maximum value to avoid overflowing the time.Duration (int64) that it will occupy
|
||||
var maxPeriod uint64 = 9223372036 // math.Floor(math.MaxInt64 / 1000000000)
|
||||
var maxPeriod uint64 = math.Floor(math.MaxInt64 / 1_000_000_000)
|
||||
if period > maxPeriod {
|
||||
log.Warn(fmt.Sprintf("period exceeds maximum possible value (have: %d, max: %d). Sanitizing period to maximum possible value.", period, maxPeriod))
|
||||
period = maxPeriod
|
||||
|
|
|
|||
Loading…
Reference in a new issue