Skip to content

Commit

Permalink
fix: effective balance cache is not in sync with validator effective …
Browse files Browse the repository at this point in the history
…balance (ChainSafe#6780)

Update eb cache at fork transition
  • Loading branch information
ensi321 authored and g11tech committed Jun 19, 2024
1 parent baeb740 commit 8d18fbd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/state-transition/src/util/electra.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ export function queueEntireBalanceAndResetValidator(state: CachedBeaconStateElec

const validator = state.validators.get(index);
validator.effectiveBalance = 0;
state.epochCtx.effectiveBalanceIncrementsSet(index, 0);
validator.activationEligibilityEpoch = FAR_FUTURE_EPOCH;

const pendingBalanceDeposit = ssz.electra.PendingBalanceDeposit.toViewDU({
Expand Down

0 comments on commit 8d18fbd

Please sign in to comment.