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

[light-client] Light Client Runtime #230

Closed
brapse opened this issue Apr 21, 2020 · 0 comments · Fixed by #237
Closed

[light-client] Light Client Runtime #230

brapse opened this issue Apr 21, 2020 · 0 comments · Fixed by #237
Assignees
Labels
light-client Issues/features which involve the light client

Comments

@brapse
Copy link
Contributor

brapse commented Apr 21, 2020

The light client currently exposes the function verify_bisection to verify new header and update the trusted state according to the verificaiton spec. Users such as the Relayer execute the verify_bisection function in a loop to maintain the latest trusted state.

It would be better for the for light client users to have a consistent runtime and be exposed to light client state changes via events. This way enrichments to the light client protocol (for instance the addition of fork detection) could translate simply to the consumption of new events without changes to the overall runtime behaviour.

A potential design has already been sketched out and just needs to be integrated. This work is related to #229 and together will be the natural evolution of the ideas suggested in ADR-006.

@brapse brapse self-assigned this Apr 21, 2020
@romac romac mentioned this issue May 25, 2020
5 tasks
@romac romac added the light-client Issues/features which involve the light client label May 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
light-client Issues/features which involve the light client
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants