mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-12-01 14:59:58 +00:00
offences: make fn slash_fraction non-static (#11956)
* offences: make fn slash_fraction non-static * Bastifmt (inline variable)
This commit is contained in:
1 parent
63f847c24f
commit
0cda69d34a
8 files changed
+21
-23
No files matched your search
@@ -168,8 +168,8 @@ impl<T: Clone> offence::Offence<T> for Offence<T> {
|
||||
1
|
||||
}
|
||||
|
||||
fn slash_fraction(offenders_count: u32, validator_set_count: u32) -> Perbill {
|
||||
Perbill::from_percent(5 + offenders_count * 100 / validator_set_count)
|
||||
fn slash_fraction(&self, offenders_count: u32) -> Perbill {
|
||||
Perbill::from_percent(5 + offenders_count * 100 / self.validator_set_count)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user