mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-12 19:16:41 +00:00
eth/catalyst: fix flaw in withdrawal-gathering in simulated beacon (#29344)
return after reaching maxCount
This commit is contained in:
parent
738b5a586e
commit
f2a6ac17b2
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