Skip to content

Commit

Permalink
Fix heap memory issue when processing attestations for altair (#4404)
Browse files Browse the repository at this point in the history
  • Loading branch information
twoeths authored Aug 13, 2022
1 parent d39e2f9 commit 20edb58
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export function processAttestationsAltair(
// TODO: describe issue. Compute progressive target balances
// When processing each attestation, increase the cummulative target balance. Only applies post-altair
if ((flagsNewSet & TIMELY_TARGET) === TIMELY_TARGET) {
const validator = state.validators.get(index);
const validator = state.validators.getReadonly(index);
if (!validator.slashed) {
if (inCurrentEpoch) {
epochCtx.currentTargetUnslashedBalanceIncrements += effectiveBalanceIncrements[index];
Expand Down

0 comments on commit 20edb58

Please sign in to comment.