eth/catalyst: fix flaw in withdrawal-gathering in simulated beacon (#29344)

return after reaching maxCount
pull/29372/head
Aaron Chen 8 months ago committed by GitHub
parent 738b5a586e
commit f2a6ac17b2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      eth/catalyst/simulated_beacon.go

@ -63,7 +63,7 @@ func (w *withdrawalQueue) gatherPending(maxCount int) []*types.Withdrawal {
case withdrawal := <-w.pending:
withdrawals = append(withdrawals, withdrawal)
if len(withdrawals) == maxCount {
break
return withdrawals
}
default:
return withdrawals

Loading…
Cancel
Save