Handle the re-org scenario for the proof provider #5645
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
WIth the
@lodestar/prover
we have the following scenario where we have to update the payloads in case of re-orgs. We need a better way to handle these re-orgs.lodestar/packages/prover/src/proof_provider/payload_store.ts
Lines 155 to 159 in 08b82af
Solution description
One solution could be that
lightclient
exposes a re-org event which tells the base slot where re-org happens and thenprover
should purge and update the payloads from that slot onwards.Additional context
This issue was extracted from #4706
The text was updated successfully, but these errors were encountered: