Skip to content

Commit

Permalink
Fix heap memory issue when processing attestations for altair
Browse files Browse the repository at this point in the history
  • Loading branch information
twoeths committed Aug 12, 2022
1 parent 551ad74 commit 9442a53
Showing 1 changed file with 1 addition and 1 deletion.
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 9442a53

Please sign in to comment.