Add a TributaryState struct with higher-level DB logic

This commit is contained in:
Luke Parker
2023-10-24 03:00:37 -04:00
parent 7c10873cd5
commit 0198d4cc46
5 changed files with 142 additions and 97 deletions

View File

@@ -283,8 +283,7 @@ async fn dkg_test() {
let mut txs = vec![];
for key in keys.iter() {
let attempt = 0;
// This is fine to re-use the one DB as such, due to exactly how this specific call is coded,
// albeit poor
let (mut scanner_db, _) = new_processors(key, &spec, &tributaries[0].1).await;
let mut txn = scanner_db.0.txn();
let share =
crate::tributary::generated_key_pair::<MemDb>(&mut txn, key, &spec, &key_pair, 0).unwrap();