Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Proposer LMD Score Boosting #2730
Proposer LMD Score Boosting #2730
Changes from 15 commits
97e6d5c
7736c8b
2d161b4
281c1b2
47fa6d1
504d82c
b0fb861
3b20e3e
859bbf4
88c76ab
cebe6ba
282d85b
ea09df5
1d835c5
d85d439
64b4ca2
bdd7b07
a0b5a80
ecbe919
2a5c9d8
6f95637
2ba0586
40f1c85
975931b
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nitpicking: we use
SECONDS_PER_SLOT // INTERVALS_PER_SLOT
in code and have setSECONDS_PER_SLOT % INTERVALS_PER_SLOT == 0
. It could be a bit off whenSECONDS_PER_SLOT % INTERVALS_PER_SLOT != 0
.Is
SECONDS_PER_SLOT % INTERVALS_PER_SLOT == 0
an invariant that should be checked intest_config_invariants.py
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note that this is division and not integer division.
I don't think this makes sense as a strict config invariant but maybe deserves a note
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
EDITED: Sorry, I meant "we use
SECONDS_PER_SLOT // INTERVALS_PER_SLOT
in code ".^^^^^ typo fixed
Yes. Clarify: so the value that the validator guide describes may be different from the value from the fork choice rule code when
SECONDS_PER_SLOT % INTERVALS_PER_SLOT != 0
.INTERVALS_PER_SLOT := 3
is fine for our minimal and mainnet config.Another option is also using integer division here: "...
SECONDS_PER_SLOT // INTERVALS_PER_SLOT
seconds after the start ofslot
..."There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah, right. Then it is valuable to have these work well together.