mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-15 16:11:05 +00:00
Removes ReportsByKindIndex (#13936)
* Removes ReportsByKind * Minor build fixes * adds migration * Addresses review comment * Uses clear but weight check fails * Uses unique * Updates test to commit the change before migration * Uses reads_writes * ".git/.scripts/commands/fmt/fmt.sh" * Fixes build * Addresses review comments * ".git/.scripts/commands/fmt/fmt.sh" * fixes typo --------- Co-authored-by: command-bot <>
This commit is contained in:
@@ -164,8 +164,3 @@ impl offence::Offence<u64> for Offence {
|
||||
Perbill::from_percent(5 + offenders_count * 100 / self.validator_set_count)
|
||||
}
|
||||
}
|
||||
|
||||
/// Create the report id for the given `offender` and `time_slot` combination.
|
||||
pub fn report_id(time_slot: u128, offender: u64) -> H256 {
|
||||
Offences::report_id::<Offence>(&time_slot, &offender)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user