Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix heap memory issue when processing attestations for altair #4404

Merged
merged 1 commit into from Aug 13, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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