Consensys / teku

Open-source Ethereum consensus client written in Java
https://consensys.io/teku
Apache License 2.0
684 stars 290 forks source link

Checkpoint sync is not working when finalized state is transitioned with empty slots #7956

Open zilm13 opened 10 months ago

zilm13 commented 10 months ago

Description

If finalized epoch ends with empty slot(s) most clients provide state transitioned to the end of the epoch, so it cannot be used for AnchorPoint initialization without extra work. To fix this we should also request finalized block header from peer and patch finalized state so it could be used for AnchorPoint.

Discussion on Discord: https://discord.com/channels/697535391594446898/697539289042649190/1202083995815522364

lucassaldanha commented 1 month ago

Internal discussion: https://consensyssoftware.atlassian.net/wiki/spaces/PEG/pages/399517614166/Starting+from+transitioned+AnchorPoint+discussion