penumbra_app::app_version

Function migrate_app_version

Source
pub async fn migrate_app_version<S: StateWriteProto>(
    s: &mut S,
    to: u64,
) -> Result<()>
Expand description

Migrate the app version to a given number.

This will check that the app version is currently the previous version, if set at all.

This is the recommended way to change the app version, and should be called during a migration with breaking consensus logic.