prysm icon indicating copy to clipboard operation
prysm copied to clipboard

Add option to save periodic state checkpoints

Open potuz opened this issue 2 years ago • 1 comments

With the new checkpoint sync feature, we can let a node save periodically beacon states ssz and let the node backup from those. Instead of backing up the entire dbase, the node can resync quickly from these automatic backups without relying on any provider. cc @kasey

potuz avatar Mar 23 '22 12:03 potuz

Love this, exactly the use-case I was looking looking to fill with checkpoint-sync. If you happen to know already, could you could share a rough estimate on how much time it might take to checkpoint-sync from a recently finalized state?

muang0 avatar Aug 31 '22 15:08 muang0

This is easily achievable with the beacon API.

# Fetch the latest finalized state from the debug endpoint and do something with it...
curl -X 'GET' \
  'http://beacon_node:3500/eth/v2/debug/beacon/states/finalized' \
  -H 'accept: application/octet-stream'

prestonvanloon avatar Mar 21 '24 18:03 prestonvanloon