Update the logic for pruning the unfinalized headers #5646
Labels
help wanted
The author indicates that additional help is wanted.
meta-feature-request
Issues to track feature requests.
prio-low
This is nice to have.
scope-light-clients
All issues regarding light client development.
Problem description
In
@lodestar/prover
we store thepayloads
androots
. Theroots
are divided intofinalized
andunfinalized
categories. The finalized roots are cleaned based onMAX_PAYLOAD_HISTORY
.lodestar/packages/prover/src/proof_provider/payload_store.ts
Lines 177 to 181 in 08b82af
There could be cases when chain is not finalized and endup huge memory bloat for unfinalized root.s
Solution description
We nee to develop similar limit for unfinalzied roots similar to
MAX_PAYLOAD_HISTORY
. And this value should be configureable so based on different networks user can configure.Additional context
Extracted from #4706
The text was updated successfully, but these errors were encountered: