Skip to content

Avoid epoch transition when validating gossip blocks #9873

Description

@twoeths

Describe the bug

in glamsterdam-devnet-8 unfinality time, I notice we received gossip blocks quite late, and we have to do epoch transitions a lot

Image Image

Expected behavior

right now, we use getPreState() regen api mostly to get proposer index (double check)
if that's the case, we can mostly use parent block state to validate and forward block to the network
(worse case, we can just dial to block's epoch - 1 to save at least 1 epoch transition)
then we'll do epoch transition when processing block

Steps to reproduce

No response

Additional context

No response

Operating system

Linux

Lodestar version or commit hash

unstable

Metadata

Metadata

Assignees

No one assigned

    Labels

    meta-bugIssues that identify a bug and require a fix.spec-gloasIssues targeting the Glamsterdam spec version

    Type

    No type

    Projects

    Status
    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions