mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-22 11:41:19 +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 {
|
if !ok {
|
||||||
select {
|
select {
|
||||||
case <-wait:
|
case <-wait:
|
||||||
|
return false
|
||||||
case <-ctx.Done():
|
case <-ctx.Done():
|
||||||
|
return true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
return false
|
||||||
return !s.hd.BeaconRequestList.IsWaiting()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *EthBackendServer) checkWithdrawalsPresence(time uint64, withdrawals []*types.Withdrawal) error {
|
func (s *EthBackendServer) checkWithdrawalsPresence(time uint64, withdrawals []*types.Withdrawal) error {
|
||||||
|
Loading…
Reference in New Issue
Block a user