From 2d1e7d47b829b9be2a14bb3f300b4002431a6b39 Mon Sep 17 00:00:00 2001 From: jwasinger Date: Tue, 18 Mar 2025 16:07:22 +0100 Subject: [PATCH] Update eth/catalyst/simulated_beacon.go --- eth/catalyst/simulated_beacon.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eth/catalyst/simulated_beacon.go b/eth/catalyst/simulated_beacon.go index f07293a8ef..c96bfb4e15 100644 --- a/eth/catalyst/simulated_beacon.go +++ b/eth/catalyst/simulated_beacon.go @@ -127,7 +127,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 - maxPeriod := uint64(math.Floor(math.MaxInt64 / 1_000_000_000)) + maxPeriod := uint64(math.Floor(math.MaxInt64 / time.Second)) 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