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

Dankrad altair review #2387

Closed
wants to merge 16 commits into from
Closed

Dankrad altair review #2387

wants to merge 16 commits into from

Conversation

dankrad
Copy link
Contributor

@dankrad dankrad commented May 5, 2021

No description provided.

@dankrad
Copy link
Contributor Author

dankrad commented May 6, 2021

I made some changes to reward/penalty calculation:

Non-substantive:

  • I feel like it's not that productive to have the separate "get_inactivity_penalty_deltas" function? Shouldn't we just integrate it into get_flag_index_deltas for the target flag? The two functions are actually kind of tightly dependent on each other and I think they are actually easier to read if integrated

Substantive:

  • I think the non-quadratic inactivity leak is actually applied twice — once in the last "else" branch of get_flag_index_deltas, and once in the first branch of get_inactivity_penalty_deltas, where the comment says "# This inactivity penalty cancels the flag reward corresponding to the flag index". I think this doesn't make sense. I would simply remove the penalty in get_inactivity_penalty_deltas, and not apply any reward in this case.
  • I think in the past we discussed how it is annoying that you can't break even in the inactivity leak, because it's impossible to get your attestation in in time (after all, in expectation at least 1/3 of slots are missing). This still isn't fixed — we apply the full penalty for timely head even though it's out of the control of the attester. I suggest not punishing for an untimely head in the inactivity leak

Copy link
Member

@ralexstokes ralexstokes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no comment yet on the rewards refactor but generally support the flags refactor

specs/altair/beacon-chain.md Show resolved Hide resolved
specs/altair/beacon-chain.md Show resolved Hide resolved
specs/altair/beacon-chain.md Outdated Show resolved Hide resolved
specs/altair/beacon-chain.md Outdated Show resolved Hide resolved
@djrtwo djrtwo force-pushed the dankrad-altair-review branch from fa95714 to 95e2aa6 Compare May 10, 2021 16:23
@djrtwo djrtwo added this to the v1.1.0-alpha.4 milestone May 11, 2021
@hwwhww hwwhww added the Altair aka HF1 label May 11, 2021
@djrtwo
Copy link
Contributor

djrtwo commented May 11, 2021

closing in favor of #2399

@djrtwo djrtwo closed this May 11, 2021
@jtraglia jtraglia deleted the dankrad-altair-review branch January 22, 2025 19:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Altair aka HF1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants