pub fn account_identity_ok<T: ReadableAccount>(
    account: &T
) -> Result<(), NonceError>
Expand description

Perform basic checks that an account has nonce-like properties.

Errors

Returns NonceError::InvalidAccountOwner if the account is not owned by the system program. Returns NonceError::UnexpectedDataSize if the account contains no data.