ethereum / trin

An Ethereum portal client: a json-rpc server with nearly instant sync, and low CPU & storage usage
347 stars 105 forks source link

feat(beacon-network): add JSON-RPC endpoint to get the latest optimistic state root #1330

Closed ogenev closed 1 day ago

ogenev commented 6 days ago

What was wrong?

To be able to validate some of the beacon contents, we want to access the latest known beacon state root from the light client module.

Current design in HeaderOracle relies on JSON-RPC requests for accessing the data from the overlay networks.

How was it fixed?

Here is a PR that proposes adding this endpoint to JSON-RPC specs: https://github.com/ethereum/portal-network-specs/pull/322

To-Do