Skip to content

Commit

Permalink
Update beacon-chain/core/electra/validator.go
Browse files Browse the repository at this point in the history
Co-authored-by: terence <terence@prysmaticlabs.com>
  • Loading branch information
james-prysm and terencechain authored Oct 10, 2024
1 parent c48a58b commit cc3e941
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions beacon-chain/core/electra/validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,12 @@ func QueueExcessActiveBalance(s state.BeaconState, idx primitives.ValidatorIndex
}

if bal > params.BeaconConfig().MinActivationBalance {
val, err := s.ValidatorAtIndex(idx)
if err != nil {
if err := s.UpdateBalancesAtIndex(idx, params.BeaconConfig().MinActivationBalance); err != nil {
return err
}
excessBalance := bal - params.BeaconConfig().MinActivationBalance
if err := s.UpdateBalancesAtIndex(idx, params.BeaconConfig().MinActivationBalance); err != nil {
val, err := s.ValidatorAtIndex(idx)
if err != nil {
return err
}
return s.AppendPendingDeposit(&ethpb.PendingDeposit{
Expand Down

0 comments on commit cc3e941

Please sign in to comment.