-
Notifications
You must be signed in to change notification settings - Fork 223
Closed
Labels
Description
Description
The schema of the config file might change with new features or bug fixes. A current example would be: spacemeshos/post#212.
A node should be able to load a config file in an older format, migrate it to the current and persist it again. Preferably with some information about the version of the config file.
Acceptance criteria
- When the node initially loads the config file from disk it determines the version information of the config file
- Add a new
schema
(or similarly named) field to config. If not present assume version 0 (current version)
- Add a new
- Load file and parse as the version presented
- if not current version migrate the config and persist again
Implementation hints
- This is a pre-requisite for Remove automatic selection for best provider post#212
- A similar approach is currently implemented for versioning PoST data on disk: Add versioning to PoST data directory via postdata_metadata.json file post#211
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
✅ Done