mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-25 12:57:18 +00:00
parent
89762492c8
commit
82f4d6a14a
@ -28,7 +28,6 @@ import (
|
||||
"github.com/prysmaticlabs/prysm/beacon-chain/p2p"
|
||||
"github.com/prysmaticlabs/prysm/beacon-chain/state/stategen"
|
||||
"github.com/prysmaticlabs/prysm/shared"
|
||||
"github.com/prysmaticlabs/prysm/shared/roughtime"
|
||||
"github.com/prysmaticlabs/prysm/shared/runutil"
|
||||
)
|
||||
|
||||
@ -226,10 +225,7 @@ func (r *Service) registerHandlers() {
|
||||
return
|
||||
}
|
||||
log.WithField("starttime", data.StartTime).Debug("Received state initialized event")
|
||||
if data.StartTime.After(roughtime.Now()) {
|
||||
stateSub.Unsubscribe()
|
||||
time.Sleep(roughtime.Until(data.StartTime))
|
||||
}
|
||||
stateSub.Unsubscribe()
|
||||
r.chainStarted = true
|
||||
}
|
||||
case <-r.ctx.Done():
|
||||
|
Loading…
Reference in New Issue
Block a user