Restore report_slashes

This does not yet handle the `SlashReport`. It solely handles the routing for
it.
This commit is contained in:
Luke Parker
2025-09-20 04:16:01 -04:00
parent ef07253a27
commit cbf998ff30
4 changed files with 99 additions and 68 deletions

View File

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