Properly route attempt around DkgConfirmer

This commit is contained in:
Luke Parker
2023-09-01 00:16:43 -04:00
parent fa8ff62b09
commit 3f3f6b2d0c
3 changed files with 28 additions and 23 deletions

View File

@@ -172,7 +172,7 @@ async fn dkg_test() {
let mut tx = Transaction::DkgShares {
attempt,
shares,
confirmation_nonces: crate::tributary::dkg_confirmation_nonces(key, &spec),
confirmation_nonces: crate::tributary::dkg_confirmation_nonces(key, &spec, 0),
signed: Transaction::empty_signed(),
};
tx.sign(&mut OsRng, spec.genesis(), key, 1);
@@ -287,7 +287,7 @@ async fn dkg_test() {
// albeit poor
let mut txn = scanner_db.0.txn();
let share =
crate::tributary::generated_key_pair::<MemDb>(&mut txn, key, &spec, &key_pair).unwrap();
crate::tributary::generated_key_pair::<MemDb>(&mut txn, key, &spec, &key_pair, 0).unwrap();
txn.commit();
let mut tx = Transaction::DkgConfirmed(attempt, share, Transaction::empty_signed());