mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 20:29:23 +00:00
Add abstraction for the embedded elliptic curve keys
It's minimal but still pleasant.
This commit is contained in:
@@ -44,7 +44,8 @@ pub(crate) trait SessionsStorage: AllocationsStorage {
|
||||
///
|
||||
/// This is opaque and to be exclusively read/write by `Sessions`.
|
||||
// The value is how many key shares the validator has.
|
||||
type SelectedValidators: StorageMap<SelectedValidatorsKey, u64> + StoragePrefixedMap<u64>;
|
||||
type SelectedValidators: StorageMap<SelectedValidatorsKey, u64, Query = Option<u64>>
|
||||
+ StoragePrefixedMap<u64>;
|
||||
|
||||
/// The total allocated stake for a network.
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user