eth/catalyst: fix flaw in withdrawal-gathering in simulated beacon (#29344)
return after reaching maxCount
This commit is contained in:
parent
738b5a586e
commit
f2a6ac17b2
@ -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…
Reference in New Issue
Block a user