From fc45fee3702bc85a1cedab9f3dff35d820f7ce80 Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Thu, 17 Apr 2025 10:39:10 +0200 Subject: [PATCH] Update simulated_beacon.go --- eth/catalyst/simulated_beacon.go | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/eth/catalyst/simulated_beacon.go b/eth/catalyst/simulated_beacon.go index edd94e9137..3f6d956a46 100644 --- a/eth/catalyst/simulated_beacon.go +++ b/eth/catalyst/simulated_beacon.go @@ -128,15 +128,10 @@ 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 - maxPeriod := uint64(math.MaxInt64 / time.Second) - if period > maxPeriod { - log.Warn("sanitizing period exceeding maximum possible value", "was", period, "now", maxPeriod) - period = maxPeriod - } - + const maxPeriod = math.MaxInt64 / time.Second return &SimulatedBeacon{ eth: eth, - period: period, + period: min(period, maxPeriod), shutdownCh: make(chan struct{}), engineAPI: engineAPI, lastBlockTime: block.Time,