mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 06:36:43 +00:00
Update simulated_beacon.go
This commit is contained in:
parent
fc45fee370
commit
30923fc98c
1 changed files with 1 additions and 1 deletions
|
|
@ -128,7 +128,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
|
||||
const maxPeriod = math.MaxInt64 / time.Second
|
||||
const maxPeriod = uint64(math.MaxInt64 / time.Second)
|
||||
return &SimulatedBeacon{
|
||||
eth: eth,
|
||||
period: min(period, maxPeriod),
|
||||
|
|
|
|||
Loading…
Reference in a new issue