refactor: remove redundent active keyset check

This commit is contained in:
thesimplekid
2024-01-03 16:48:54 +00:00
parent aef3007afc
commit 5042717194

View File

@@ -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);
}