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
The solution, for critical canisters, before we have a nice stable memory API, is simply to move this code to be ran at the end of each update method. This way, if any change in (persistent but not stable) state causes some failure in the persistence in stable memory, then that call is immediately rejected.
The text was updated successfully, but these errors were encountered:
hansl
transferred this issue from another repository
Oct 6, 2020
The wallet canisters stores valuable data, so we need to make sure it is upgradable without loosing data.
This means that
pre_upgrade
cannot be used, because:The solution, for critical canisters, before we have a nice stable memory API, is simply to move this code to be ran at the end of each update method. This way, if any change in (persistent but not stable) state causes some failure in the persistence in stable memory, then that call is immediately rejected.
The text was updated successfully, but these errors were encountered: