ethpandaops / checkpointz

An Ethereum beacon chain checkpoint sync provider
GNU General Public License v3.0
141 stars 31 forks source link

feat: Parse Beacon State #171

Closed samcm closed 5 months ago

samcm commented 5 months ago

This PR changes how Checkpointz parses beacon state objects. Previously we just stored the raw bytes that were received from the upstream beacon node. This was becoming more and more painful as we try to comply with the Beacon API Spec as much as possible. We now fetch the state, parse it in to a struct, and marshal it to SSZ when someone requests it, allowing us to be more compliant with the Beacon API Spec.