mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 02:42:27 +00:00
eth/catalyst: return after reaching maxCount
This commit is contained in:
parent
738b5a586e
commit
21ec0d2e15
1 changed files with 1 additions and 1 deletions
|
|
@ -63,7 +63,7 @@ func (w *withdrawalQueue) gatherPending(maxCount int) []*types.Withdrawal {
|
||||||
case withdrawal := <-w.pending:
|
case withdrawal := <-w.pending:
|
||||||
withdrawals = append(withdrawals, withdrawal)
|
withdrawals = append(withdrawals, withdrawal)
|
||||||
if len(withdrawals) == maxCount {
|
if len(withdrawals) == maxCount {
|
||||||
break
|
return withdrawals
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
return withdrawals
|
return withdrawals
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue