Skip to content

Defer block import while block production is in flight #9488

@tbenr

Description

@tbenr

We could defer a late block import while a block production is in-flight.
We could "close the gate" at block production start, so we can avoid resource contentions while we are in the block production critical path

we already have the concept of in-flight block production in ValidatorApiHandler::localBlockProductionBySlotCache, which is used keep only one block production at a time, so multiple block production api calls will effectively trigger only one block production.

We could "export" this information on the block import side and use it to gate the block import process.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions