mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-10 17:11:03 +00:00
Expose key_owner(), so other pallets can look up validator ID by the (#8506)
session key.
This commit is contained in:
@@ -819,7 +819,8 @@ impl<T: Config> Module<T> {
|
||||
<NextKeys<T>>::insert(v, keys);
|
||||
}
|
||||
|
||||
fn key_owner(id: KeyTypeId, key_data: &[u8]) -> Option<T::ValidatorId> {
|
||||
/// Query the owner of a session key by returning the owner's validator ID.
|
||||
pub fn key_owner(id: KeyTypeId, key_data: &[u8]) -> Option<T::ValidatorId> {
|
||||
<KeyOwner<T>>::get((id, key_data))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user