From 504271719400a0451018cf27e67e85363ff48d88 Mon Sep 17 00:00:00 2001 From: thesimplekid Date: Wed, 3 Jan 2024 16:48:54 +0000 Subject: [PATCH] refactor: remove redundent active keyset check --- crates/cashu-sdk/src/mint/mod.rs | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/crates/cashu-sdk/src/mint/mod.rs b/crates/cashu-sdk/src/mint/mod.rs index 231dbe2d..2d953ce8 100644 --- a/crates/cashu-sdk/src/mint/mod.rs +++ b/crates/cashu-sdk/src/mint/mod.rs @@ -302,17 +302,6 @@ impl Mint { .await? .ok_or(Error::UnknownKeySet)?; - // Get the active keyset for the unit - let active_keyset_id = self - .localstore - .get_active_keyset_id(&keyset.unit) - .await? - .ok_or(Error::InactiveKeyset)?; - - // Check output is for current active keyset - if id.ne(&active_keyset_id) { - return Err(Error::InactiveKeyset); - } keyset_units.push(keyset.unit); }