penumbra_app::app_version

Function check_and_update_app_version

Source
pub async fn check_and_update_app_version(s: Storage) -> Result<()>
Expand description

Ensure that the app version safeguard is APP_VERSION, or update it if it is missing.

§Errors

This method errors if the app version safeguard is different than APP_VERSION.

§Usage

This should be called on startup. This method short-circuits if the database is uninitialized (pregenesis).

§UIP:

More context is available in the UIP-6 document: https://uips.penumbra.zone/uip-6.html