Skip to content

Conversation

@yyhrnk
Copy link

@yyhrnk yyhrnk commented Dec 25, 2025

This change optimizes pruning by replacing multiple sequential GetByHeight calls with a single additional GetRangeByHeight when the initial estimated range does not fully cover the pruneable window. The new logic still respects maxHeadersPerLoop and the pruneCutoff time bound, but significantly reduces header store calls and slice growth work in scenarios where the node has accumulated a large backlog of pruneable headers (e.g. after being offline for a long time).

@github-actions github-actions bot added the external Issues created by non node team members label Dec 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

external Issues created by non node team members

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant