mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-10 05:09:22 +00:00
Continue filling out main loop
Adds generics to the db_channel macro, fixes the bug where it needed at least one key.
This commit is contained in:
@@ -1,10 +1,19 @@
|
||||
use ciphersuite::group::GroupEncoding;
|
||||
|
||||
use serai_client::validator_sets::primitives::Session;
|
||||
|
||||
use serai_db::{Get, DbTxn, create_db};
|
||||
use serai_db::{Get, DbTxn, create_db, db_channel};
|
||||
use primitives::EncodableG;
|
||||
|
||||
create_db! {
|
||||
Processor {
|
||||
ExternalKeyForSession: (session: Session) -> Vec<u8>,
|
||||
ExternalKeyForSessionForSigners: <K: GroupEncoding>(session: Session) -> EncodableG<K>,
|
||||
}
|
||||
}
|
||||
|
||||
db_channel! {
|
||||
Processor {
|
||||
KeyToActivate: <K: GroupEncoding>() -> EncodableG<K>
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user