diff --git a/src/key.rs b/src/key.rs index b8b9662f0..0bdc3d245 100644 --- a/src/key.rs +++ b/src/key.rs @@ -337,17 +337,11 @@ pub(crate) async fn store_self_keypair( KeyPairUse::ReadOnly => false, }; - // `addr` and `is_default` written for compatibility with older versions, - // until new cores are rolled out everywhere. - // otherwise "add second device" or "backup" may break. - // moreover, this allows downgrades to the previous version. - // writing of `addr` and `is_default` can be removed ~ 2024-08 - let addr = keypair.addr.to_string(); transaction .execute( - "INSERT OR REPLACE INTO keypairs (public_key, private_key, addr, is_default) - VALUES (?,?,?,?)", - (&public_key, &secret_key, addr, is_default), + "INSERT OR REPLACE INTO keypairs (public_key, private_key) + VALUES (?,?)", + (&public_key, &secret_key), ) .context("Failed to insert keypair")?;