nervosnetwork / fiber

15 stars 8 forks source link

Gracefully migrate persisted data #117

Open contrun opened 2 months ago

contrun commented 2 months ago

Currently, when we change the schema of the channel state, the old data persisted on disk will normally be incompatible to the new schema. This will normally cause the whole program to panick. We need to gracefully migrate state created from old schema.