Skip to main content

is_v2_to_v1_downgrade

Function is_v2_to_v1_downgrade 

Source
fn is_v2_to_v1_downgrade(
    local: &WrappedAccountCryptographicState,
    incoming: &WrappedAccountCryptographicState,
) -> bool
Expand description

Whether the incoming state moves a locally V2 account back to V1.

V1 accounts carry no security state, so staying on V1 or upgrading to V2 is never a downgrade.