From f22aedc007513fc4963fe64a8681707336480c15 Mon Sep 17 00:00:00 2001 From: Luke Parker Date: Tue, 24 Oct 2023 04:34:47 -0400 Subject: [PATCH] Add tweaks meant for prior commit --- coordinator/src/tests/tributary/dkg.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/coordinator/src/tests/tributary/dkg.rs b/coordinator/src/tests/tributary/dkg.rs index a3c6643e7..90ad1f246 100644 --- a/coordinator/src/tests/tributary/dkg.rs +++ b/coordinator/src/tests/tributary/dkg.rs @@ -281,9 +281,13 @@ async fn dkg_test() { let key_pair = (serai_client::Public(substrate_key), network_key.try_into().unwrap()); let mut txs = vec![]; - for key in keys.iter() { + for (i, key) in keys.iter().enumerate() { let attempt = 0; - let (mut scanner_db, _) = new_processors(key, &spec, &tributaries[0].1).await; + let mut scanner_db = &mut scanner_db; + let (mut local_scanner_db, _) = new_processors(key, &spec, &tributaries[0].1).await; + if i != 0 { + scanner_db = &mut local_scanner_db; + } let mut txn = scanner_db.0.txn(); let share = crate::tributary::generated_key_pair::(&mut txn, key, &spec, &key_pair, 0).unwrap();