ソースを参照

refactor: remove redundent active keyset check

thesimplekid 1 年間 前
コミット
5042717194
1 ファイル変更0 行追加11 行削除
  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);
         }