Function fedimint_dummy_client::db::migrate_to_v1
source · pub async fn migrate_to_v1(
dbtx: &mut DatabaseTransaction<'_>
) -> Result<Option<(Vec<DynState>, Vec<DynState>)>>
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.