Browse Source

refactor: remove redundent active keyset check

thesimplekid 1 năm trước cách đây
mục cha
commit
5042717194
1 tập tin đã thay đổi với 0 bổ sung11 xóa
  1. 0 11
      crates/cashu-sdk/src/mint/mod.rs

+ 0 - 11
crates/cashu-sdk/src/mint/mod.rs

@@ -302,17 +302,6 @@ impl<L: LocalStore> Mint<L> {
                 .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);
         }