ethereum / trin

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

beacon-network: Store `HistoricalSummariesWithProof` in database instead of cache #1322

Closed ogenev closed 1 month ago

ogenev commented 3 months ago

Currently, we store HistoricalSummariesWithProof in the beacon storage cache.

This is not very convenient because this content changes once per epoch and if the node goes offline for less than an epoch, it will be required to always get the latest HistoricalSummariesWithProof from the network.