Strongly type SlashReport, populate cosign/slash report tasks with work

This commit is contained in:
Luke Parker
2024-09-09 03:23:55 -04:00
parent 0078858c1c
commit 3cc7b49492
4 changed files with 64 additions and 6 deletions

View File

@@ -1,4 +1,4 @@
use serai_validator_sets_primitives::Session;
use serai_validator_sets_primitives::{Session, Slash};
use serai_db::{Get, DbTxn, create_db, db_channel};
@@ -15,6 +15,9 @@ create_db! {
db_channel! {
SignersGlobal {
Cosign: (session: Session) -> (u64, [u8; 32]),
SlashReport: (session: Session) -> Vec<Slash>,
CoordinatorToCosignerMessages: (session: Session) -> CoordinatorMessage,
CosignerToCoordinatorMessages: (session: Session) -> ProcessorMessage,