Skip to content

Conversation

@Bashmunta
Copy link
Contributor

Persisted links immediately drop header and headerRaw fields and only keep hash and block number. AddHeadersFromSnapshot was still encoding headers to RLP and passing both header and headerRaw into addHeaderAsLink, even though this data was discarded for persisted links. This change stops encoding headers to RLP and only initializes ChainSegmentHeader with hash and number for persisted links, keeping the behavior the same while removing unnecessary allocations and work during snapshot-based header prefill.

@yperbasis yperbasis merged commit a397f9a into erigontech:main Dec 29, 2025
16 checks passed
@yperbasis
Copy link
Member

Nice catch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants