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

would it be possible to serve the config route? #133

Open
rolfyone opened this issue Sep 16, 2023 · 1 comment
Open

would it be possible to serve the config route? #133

rolfyone opened this issue Sep 16, 2023 · 1 comment

Comments

@rolfyone
Copy link

I know currently this serves /eth/v2/debug/beacon/states/..., but I was wondering if it'd be possible to serve
/eth/v1/config/spec, either from a static yaml file or from a connected server...

I guess what I'm interested in ultimately, is a scenario where we could initialise just using checkpointz, reading the network configuration from the spec endpoint, and the state from the states endpoint. Imagining something like holesky where we update checkpointz to serve the updated configuration without doing a release of all nodes...

So maybe if a client was initialised with
./cl_client --checkpointz-server https://my-checkpointz-server.io
and the client can download network config, genesis if it needs it, finalized if it needs it.... whatever the client needs, just with that initial information of the base url of the checkpointz server...

Another scenario may be a custom network, where they want to spin up servers and just configure separately. I'd assume that clients would download the spec once, and store it, downloading the spec each startup may drive undesirable load on the checkpointz instances, but maybe it's more desirable (although you could brick your nodes).

Anyway, it's probably worth a discussion, and this seems like a good place to have it :)

@samcm
Copy link
Member

samcm commented Sep 20, 2023

Sounds like a plan! Checkpointz already serves that route (I added it when I thought that being able to chain checkpointz instances together was a good idea 🙃). We also serve a couple more routes than required: https://github.com/ethpandaops/checkpointz/blob/master/pkg/api/handler.go#L49-L74

I might need to update the spec struct to include any new fields that've been added - will leave this issue open for now as a reminder.

Let me know if checkpointz can serve anything else that'd help with the --checkpointz-server endeavour 🙏

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

No branches or pull requests

2 participants