Skip to content

Commit 788b01a

Browse files
Update eth/catalyst/simulated_beacon.go
Co-authored-by: Marius van der Wijden <m.vanderwijden@live.de>
1 parent 87d35f0 commit 788b01a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eth/catalyst/simulated_beacon.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ func NewSimulatedBeacon(period uint64, feeRecipient common.Address, eth *eth.Eth
126126
}
127127

128128
// cap the dev mode period to a reasonable maximum value to avoid overflowing the time.Duration (int64) that it will occupy
129-
var maxPeriod uint64 = 9223372036 // math.Floor(math.MaxInt64 / 1000000000)
129+
var maxPeriod uint64 = math.Floor(math.MaxInt64 / 1_000_000_000)
130130
if period > maxPeriod {
131131
log.Warn(fmt.Sprintf("period exceeds maximum possible value (have: %d, max: %d). Sanitizing period to maximum possible value.", period, maxPeriod))
132132
period = maxPeriod

0 commit comments

Comments
 (0)