Skip to content

Provide Headers with ForkChoiceEvent #7520

Open
@pinges

Description

Description

When Besu is receiving a fork choice update it would usually have received the NewPayload containing the blocks before that. The PivotSelectorFromSafeBlock uses the fork choice to set a new pivot block, but under certain circumstances it is downloading the header for the safe block. If the ForkChoiceEvent did provide the Headers for its three blocks this would be unnecessary.

This could be done by caching the block headers from the NewPayload and adding them to the ForkChoiceEvent if they are available.

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions