In the sync process, we don't have the full picture to propose or attest blocks. We should determine if we are still syncing in some way, and skip block proposal/attestation duties until we catched up.
We already have a flag that shows if we're syncing, but it's only used for metrics, and doesn't use a good enough heuristic to use for blocking proposals/attestations. However, the spec recently merged leanEthereum/leanSpec#708, which adds this functionality, with a better heuristic. We should implement and test this.
In the sync process, we don't have the full picture to propose or attest blocks. We should determine if we are still syncing in some way, and skip block proposal/attestation duties until we catched up.
We already have a flag that shows if we're syncing, but it's only used for metrics, and doesn't use a good enough heuristic to use for blocking proposals/attestations. However, the spec recently merged leanEthereum/leanSpec#708, which adds this functionality, with a better heuristic. We should implement and test this.