You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Most checkpoints supports DepositTreeSnapshot API https://github.com/ethereum/beacon-APIs/blob/master/apis/beacon/deposit_snapshot.yaml, so when user provides --checkpoint-sync-url, we can try to download DepositTreeSnapshot from the same provider and start node with fresh snapshot.
Please, note, currently we support only ssz input so it should be updated to be able to parse json also. There is no need to temporarily save a file, DepositSnapshotFileLoader supports URLs.
Reopened 15/12/2023
Reopened as we need to implement this again, this time with a proper fallback mechanism when we can't load it from the Beacon API.
Desired behaviour
Load from checkpoint-sync-url
Likely to be the most used option by users
Only used when checkpoint-sync-url option is in use
Not reliable, should fallback into bundled option (or stored db) when it fails. Should not fail if can’t load.
Should be the first choice when available
Load from bundled snapshot (current default behaviour)
The second most common option now that users are likely to start using checkpoint-sync-url
Only available on a compatible network (network that we provide a bundle for)
There is no reason for this to fail (it is provided as part of our JAR file). But if it fails, we should log a warning (?) and fallback into our stored snapshot in the db (even if it is an empty snapshot tree).
Load from provided path/URL (--Xdeposit-snapshot)
Less common option, probably only used for testnets etc.
Mandatory when specified
Don’t try any other fallback options
The text was updated successfully, but these errors were encountered:
Description
Most checkpoints supports
DepositTreeSnapshot
API https://github.com/ethereum/beacon-APIs/blob/master/apis/beacon/deposit_snapshot.yaml, so when user provides--checkpoint-sync-url,
we can try to downloadDepositTreeSnapshot
from the same provider and start node with fresh snapshot.Please, note, currently we support only ssz input so it should be updated to be able to parse json also. There is no need to temporarily save a file,
DepositSnapshotFileLoader
supports URLs.Reopened 15/12/2023
Reopened as we need to implement this again, this time with a proper fallback mechanism when we can't load it from the Beacon API.
Desired behaviour
Load from checkpoint-sync-url
Load from bundled snapshot (current default behaviour)
Load from provided path/URL (--Xdeposit-snapshot)
The text was updated successfully, but these errors were encountered: