pub(crate) async fn migrate_to_accounts_v1(
dbtx: &mut DatabaseTransaction<'_>,
_active_states: Vec<(Vec<u8>, OperationId)>,
_inactive_states: Vec<(Vec<u8>, OperationId)>,
) -> Result<Option<(Vec<(Vec<u8>, OperationId)>, Vec<(Vec<u8>, OperationId)>)>, DbMigrationError>Expand description
Accounts split the note table, so every note a pre-accounts client wrote is
re-keyed as belonging to Account::Primary — the only account it could
have meant.
Neither the derivation tree nor the state machines need an equivalent: primary derives exactly where it always did, so no note has to be re-issued, and a state machine reads its account off its operation rather than carrying it, so the ones in flight keep their shape.