Make state sync state machine more robust #3489
Labels
A-chain
Area: Chain, client & related
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
Milestone
It seems like currently the
Client
hasstate_sync
andcatchup_state_syncs
only in memory, but the state sync logic writes to db (ColStateParts
).Implementing #3262 requires more state-dependent logic to write / clean up data in db, so it would be a good idea to persist the state of syncing (
ShardSyncDownload
), and have atomic writes for state transitions and rollback/cleanup logic from any state.The text was updated successfully, but these errors were encountered: