mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-02-03 01:25:33 -05:00
Initialize state-diff database on new node startup When starting a node with --enable-state-diff feature flag, the database is now initialized appropriately based on the startup scenario: - New database + checkpoint sync: Set offset to checkpoint state slot, save checkpoint state as full snapshot - New database + genesis sync: Set offset to 0, save genesis state as full snapshot - Existing database without state-diff: Log warning that feature is ignored due to old schema - Existing database with state-diff: Return error (restarts will be handled in a future PR) Review after #16049 has merged --------- Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com> Co-authored-by: Bastin <43618253+Inspector-Butters@users.noreply.github.com>