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

beacon/light: blsync'er alternate #28642

Closed
wants to merge 10 commits into from

Conversation

lightclient
Copy link
Member

@lightclient lightclient commented Dec 5, 2023

Parts of this is copied directly from Zsolt's blsync implementation.

This is mostly working now. If you want to try it out you can run the following:

$ geth --sepolia --beacon.api=https://lodestar-sepolia.chainsafe.io --beacon.wsc=$(curl -X GET 'https://lodestar-sepolia.chainsafe.io/eth/v1/beacon/headers/finalized' | jq ".data.root" | sed 's/"//g') --log.vmodule="beacon/light/*=5"

Only supports Sepolia at the moment, but easy to add some more configs if this is a direction we want to go.

I think this conveys my perspective that we can drive geth via a light client w/o adding much complexity. This change is only around 1600 diff to the LOC in geth whereas the other approach is 5000+ LOC.

Obviously there are limitations of this approach and is nowhere as fully featured as Zsolt's- but as I've argued in the past, I don't think we should provide a thorough light client picture for users and so this PR provides all the functionality that we could need in an extremely simple and easy to understand format.

@lightclient lightclient changed the title cmd/blsync: alternate blsync'er implementation beacon/light: blsync'er alternate Jan 6, 2024
@lightclient
Copy link
Member Author

closing favor of #28822

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants