reth icon indicating copy to clipboard operation
reth copied to clipboard

Store headers or block numbers for valid forkchoice states

Open Rjected opened this issue 2 years ago • 0 comments

Describe the feature

The ForkchoiceStateTracker tracks the latest VALID forkchoice state, latest SYNCING forkchoice state, and the latest overall forkchoice state received: https://github.com/paradigmxyz/reth/blob/f55d88b8c4c78c6a42c2d31dc08659e7a608e31e/crates/consensus/beacon/src/engine/forkchoice.rs#L4-L16

Validating a forkchoice state requires having the entire header, so we should be able to include either full sealed headers for the latest valid forkchoice state, or a BlockNumHash.

Additional context

No response

Rjected avatar Jun 13 '23 01:06 Rjected