Skip to content

Do not rely on the pre_upgrade hook #1

@luc-mercier

Description

@luc-mercier

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions