Skip to content

Commit

Permalink
fix timing issue in stageLoopIsBusy (erigontech#6871)
Browse files Browse the repository at this point in the history
  • Loading branch information
hexoscott authored Feb 14, 2023
1 parent 2ba8350 commit f370e6e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ethdb/privateapi/ethbackend.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit f370e6e

Please sign in to comment.