mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-14 15:09:23 +00:00
Restore report_slashes
This does not yet handle the `SlashReport`. It solely handles the routing for it.
This commit is contained in:
@@ -30,6 +30,9 @@ pub(crate) trait Keys {
|
||||
|
||||
/// Clear a historic set of keys.
|
||||
fn clear_keys(set: ExternalValidatorSet);
|
||||
|
||||
/// The oraclization key for a validator set.
|
||||
fn oraclization_key(set: ExternalValidatorSet) -> Option<Public>;
|
||||
}
|
||||
|
||||
impl<S: KeysStorage> Keys for S {
|
||||
@@ -46,4 +49,8 @@ impl<S: KeysStorage> Keys for S {
|
||||
S::OraclizationKeys::remove(set);
|
||||
S::ExternalKeys::remove(set);
|
||||
}
|
||||
|
||||
fn oraclization_key(set: ExternalValidatorSet) -> Option<Public> {
|
||||
S::OraclizationKeys::get(set)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user