mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-22 03:30:37 +00:00
fix timing issue in stageLoopIsBusy (#6871)
This commit is contained in:
parent
2ba835012a
commit
f370e6ee0d
@ -275,11 +275,12 @@ func (s *EthBackendServer) stageLoopIsBusy() bool {
|
||||
if !ok {
|
||||
select {
|
||||
case <-wait:
|
||||
return false
|
||||
case <-ctx.Done():
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
||||
return !s.hd.BeaconRequestList.IsWaiting()
|
||||
return false
|
||||
}
|
||||
|
||||
func (s *EthBackendServer) checkWithdrawalsPresence(time uint64, withdrawals []*types.Withdrawal) error {
|
||||
|
Loading…
Reference in New Issue
Block a user