mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 12:19:24 +00:00
Correct accumulated errors in the processor
This commit is contained in:
@@ -234,9 +234,12 @@ impl TryFrom<Vec<Slash>> for SlashReport {
|
||||
}
|
||||
}
|
||||
|
||||
// This is assumed binding to the ValidatorSet via the key signed with
|
||||
pub fn report_slashes_message(slashes: &SlashReport) -> Vec<u8> {
|
||||
(b"ValidatorSets-report_slashes", slashes).encode()
|
||||
impl SlashReport {
|
||||
/// The message to sign when publishing this SlashReport.
|
||||
// This is assumed binding to the ValidatorSet via the key signed with
|
||||
pub fn report_slashes_message(&self) -> Vec<u8> {
|
||||
(b"ValidatorSets-report_slashes", &self.0).encode()
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
Reference in New Issue
Block a user