mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-25 12:57:18 +00:00
fix chainstart waiting on rpc server (#2488)
This commit is contained in:
parent
16b42f4ac6
commit
2442b1a4d6
@ -80,6 +80,7 @@ func NewQuerierService(ctx context.Context,
|
||||
responseBuf: responseBuf,
|
||||
currentHeadSlot: cfg.CurrentHeadSlot,
|
||||
chainStarted: false,
|
||||
atGenesis: true,
|
||||
powchain: cfg.PowChain,
|
||||
chainStartBuf: make(chan time.Time, 1),
|
||||
peerMap: make(map[peer.ID]uint64),
|
||||
|
@ -94,7 +94,7 @@ func (ss *Service) Stop() error {
|
||||
// Status checks the status of the node. It returns nil if it's synced
|
||||
// with the rest of the network and no errors occurred. Otherwise, it returns an error.
|
||||
func (ss *Service) Status() error {
|
||||
if !ss.querierFinished {
|
||||
if !ss.querierFinished && !ss.Querier.atGenesis {
|
||||
return errors.New("querier is still running")
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user