Add CosignerTask to signers, completing it

This commit is contained in:
Luke Parker
2024-09-09 16:20:04 -04:00
parent 46c12c0e66
commit 8aba71b9c4
7 changed files with 261 additions and 53 deletions

View File

@@ -10,12 +10,15 @@ create_db! {
SerializedKeys: (session: Session) -> Vec<u8>,
LatestRetiredSession: () -> Session,
ToCleanup: () -> Vec<(Session, Vec<u8>)>,
ToCosign: (session: Session) -> (u64, [u8; 32]),
}
}
db_channel! {
SignersGlobal {
Cosign: (session: Session) -> (u64, [u8; 32]),
Cosign: (session: Session) -> ((u64, [u8; 32]), Vec<u8>),
SlashReport: (session: Session) -> Vec<Slash>,
SlashReportSignature: (session: Session) -> Vec<u8>,