Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle the re-org scenario for the proof provider #5645

Open
nazarhussain opened this issue Jun 14, 2023 · 0 comments
Open

Handle the re-org scenario for the proof provider #5645

nazarhussain opened this issue Jun 14, 2023 · 0 comments
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.

Comments

@nazarhussain
Copy link
Contributor

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.

// Re-org happened, we need to update the payload
if (existingELRoot && existingELRoot !== blockELRoot) {
this.payloads.delete(existingELRoot);
this.unfinalizedRoots.set(blockCLRoot, blockELRoot);
}

Solution description

One solution could be that lightclient exposes a re-org event which tells the base slot where re-org happens and then prover should purge and update the payloads from that slot onwards.

Additional context

This issue was extracted from #4706

@nazarhussain nazarhussain added the meta-feature-request Issues to track feature requests. label Jun 14, 2023
@philknows philknows added the scope-light-clients All issues regarding light client development. label Jun 16, 2023
@wemeetagain wemeetagain added help wanted The author indicates that additional help is wanted. prio-low This is nice to have. labels Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.
Projects
None yet
Development

No branches or pull requests

3 participants