Skip to content

Run on_tick before picking the head for proposal - #2897

Merged
djrtwo merged 1 commit into
devfrom
mkalinin-patch-2
May 19, 2022
Merged

Run on_tick before picking the head for proposal#2897
djrtwo merged 1 commit into
devfrom
mkalinin-patch-2

Conversation

@mkalinin

Copy link
Copy Markdown
Contributor

A follow up to #2878

It seems like running on_tick is intended by the original PR, otherwise, attestations of a previous slot couldn't be applied.

Currently, on_tick resets proposer boost in addition to advancing the current slot and may have some other logic in the future. Implicit reset of proposer boost became a source of confusion here #2895 (comment). Thus, I think it's important to have on_tick explicitly mentioned in the validator's spec.

cc @potuz @michaelsproul

@mkalinin
mkalinin requested a review from djrtwo May 19, 2022 09:34

@michaelsproul michaelsproul left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Agreed, that was the intention of the original PR but it's good to make it explicit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants