fedimint_dummy_client::db

Function migrate_to_v1

Source
pub async fn migrate_to_v1(
    dbtx: &mut DatabaseTransaction<'_>,
) -> Result<Option<(Vec<(Vec<u8>, OperationId)>, Vec<(Vec<u8>, OperationId)>)>>
Expand description

Migrates the database from version 0 to version 1 by removing DummyClientFundsKeyV0 and inserting DummyClientFundsKeyV1. The new key/value pair has an Amount as the value.