Skip to content

Conversation

@realbigsean
Copy link
Contributor

The call to get_ancestor when checking if the proposer score should be calculated in get_latest_attesting_balance seems to be unnecessary so I removed it here.

@hwwhww hwwhww requested a review from adiasg December 1, 2021 05:57
Copy link
Contributor

@adiasg adiasg left a comment

Choose a reason for hiding this comment

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

Looks good!

@djrtwo djrtwo merged commit 37eae2a into ethereum:dev Dec 1, 2021
proposer_score = Gwei(0)
if store.proposer_boost_root != Root():
block = store.blocks[root]
if get_ancestor(store, root, block.slot) == store.proposer_boost_root:
Copy link
Contributor

Choose a reason for hiding this comment

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

This line should have been

if get_ancestor(store, store.proposer_boost_root, store.blocks[root].slot) == root:

@adiasg
Copy link
Contributor

adiasg commented Dec 2, 2021

While the simplifying changes in this PR were sound for the underlying logic in the spec, the underlying logic itself was incorrect (see above comment).
New changes in #2760 remove the simplification & fix the spec logic (as pointed out in #2757).

Thanks @realbigsean for both this PR and #2757!

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants