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

also pack attestations where LMD vote is orphaned #5002

Merged
merged 2 commits into from
Jun 4, 2023

Conversation

etan-status
Copy link
Contributor

When attestation.data.beacon_block_root gets orphaned, attestations with a good attestation.data.target.root may still be valuable. The LMD GHOST vote is not relevant for attestation rewards.

Switch to use the FFG vote (attestation.data.target.root) instead, gossip validation ensures it is an ancestor of beacon_block_root.

When `attestation.data.beacon_block_root` gets orphaned, attestations
with a good `attestation.data.target.root` may still be valuable.
The LMD GHOST vote is not relevant for attestation rewards.

Switch to use the FFG vote (`attestation.data.target.root`) instead,
gossip validation ensures it is an ancestor of `beacon_block_root`.
@github-actions
Copy link

Unit Test Results

         9 files  ±0    1 071 suites  ±0   39m 59s ⏱️ + 3m 57s
  3 701 tests ±0    3 420 ✔️ ±0  281 💤 ±0  0 ±0 
15 772 runs  ±0  15 458 ✔️ ±0  314 💤 ±0  0 ±0 

Results for commit 057cbf1. ± Comparison against base commit c9f1bf2.

@tersec tersec merged commit 12381d5 into unstable Jun 4, 2023
@tersec tersec deleted the dev/etan/ap-packold branch June 4, 2023 10:39
Comment on lines +546 to +547
attestedBlck = dag.getBlockRef(attestation.data.target.root).valueOr:
return err("Unknown `target.root`")
Copy link
Member

Choose a reason for hiding this comment

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

this can also be:

? dag.getBlockRef(...).orErr("Unknown...")

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.

3 participants