Skip to content

Commit

Permalink
feat(evmstaking): move partial withdraw out of epoch
Browse files Browse the repository at this point in the history
  • Loading branch information
Narangde authored and 0xHansLee committed Oct 10, 2024
1 parent 9c975bf commit 71fbbde
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions client/x/evmstaking/keeper/abci.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,14 +148,14 @@ func (k *Keeper) EndBlock(ctx context.Context) (abci.ValidatorUpdates, error) {
return nil, err
}
}
}

partialWithdrawals, err := k.ExpectedPartialWithdrawals(ctx)
if err != nil {
return nil, err
}
if err := k.EnqueueEligiblePartialWithdrawal(ctx, partialWithdrawals); err != nil {
return nil, err
}
partialWithdrawals, err := k.ExpectedPartialWithdrawals(ctx)
if err != nil {
return nil, err
}
if err := k.EnqueueEligiblePartialWithdrawal(ctx, partialWithdrawals); err != nil {
return nil, err
}

return valUpdates, nil
Expand Down

0 comments on commit 71fbbde

Please sign in to comment.