Skip to content

Commit e50455d

Browse files
committed
fix non_partial_withdrawals calculation was skipping an incorrect amount of validators
1 parent 8deb976 commit e50455d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/lambda_ethereum_consensus/state_transition/operations.ex

+1-1
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ defmodule LambdaEthereumConsensus.StateTransition.Operations do
392392
Stream.zip([state.validators, state.balances])
393393
|> Stream.with_index()
394394
|> Stream.cycle()
395-
|> Stream.drop(withdrawal_index)
395+
|> Stream.drop(state.next_withdrawal_validator_index)
396396
|> Stream.take(bound)
397397
|> Stream.map(fn {{validator, balance}, index} ->
398398
partially_withdrawn_balance =

0 commit comments

Comments
 (0)