Fixes for prior commit

This commit is contained in:
Luke Parker
2023-11-22 16:24:50 -05:00
parent 08e6669403
commit 88a1726399
6 changed files with 30 additions and 46 deletions

View File

@@ -318,7 +318,6 @@ async fn dkg_test() {
let spec = spec.clone();
let key_pair = key_pair.clone();
async move {
let tx = tx.0;
// Version, Pallet, Call, Network, Key Pair, Signature
let expected_len = 1 + 1 + 1 + 1 + 32 + 1 + key_pair.1.len() + 64;
// It's length prefixed

View File

@@ -10,7 +10,6 @@ use scale::{Encode, Decode};
use serai_client::{
Public, Signature,
validator_sets::primitives::{ValidatorSet, KeyPair},
subxt::utils::Encoded,
SeraiValidatorSets,
};
@@ -138,7 +137,7 @@ pub(crate) async fn handle_application_tx<
D: Db,
Pro: Processors,
FPst: Future<Output = ()>,
PST: Clone + Fn(ValidatorSet, Encoded) -> FPst,
PST: Clone + Fn(ValidatorSet, Vec<u8>) -> FPst,
FRid: Future<Output = ()>,
RID: RIDTrait<FRid>,
>(

View File

@@ -8,7 +8,7 @@ use ciphersuite::{Ciphersuite, Ristretto};
use tokio::sync::broadcast;
use scale::{Encode, Decode};
use serai_client::{validator_sets::primitives::ValidatorSet, subxt::utils::Encoded, Serai};
use serai_client::{validator_sets::primitives::ValidatorSet, Serai};
use serai_db::DbTxn;
@@ -48,7 +48,7 @@ async fn handle_block<
D: Db,
Pro: Processors,
FPst: Future<Output = ()>,
PST: Clone + Fn(ValidatorSet, Encoded) -> FPst,
PST: Clone + Fn(ValidatorSet, Vec<u8>) -> FPst,
FRid: Future<Output = ()>,
RID: RIDTrait<FRid>,
P: P2p,
@@ -134,7 +134,7 @@ pub(crate) async fn handle_new_blocks<
D: Db,
Pro: Processors,
FPst: Future<Output = ()>,
PST: Clone + Fn(ValidatorSet, Encoded) -> FPst,
PST: Clone + Fn(ValidatorSet, Vec<u8>) -> FPst,
FRid: Future<Output = ()>,
RID: RIDTrait<FRid>,
P: P2p,