Implement deterministic nonces for Tributary transactions

This commit is contained in:
Luke Parker
2023-09-25 15:42:39 -04:00
parent ca69f97fef
commit 4babf898d7
6 changed files with 175 additions and 38 deletions

View File

@@ -86,7 +86,7 @@ async fn dkg_test() {
handle_new_blocks::<_, _, _, _, _, _, LocalP2p>(
&mut scanner_db,
key,
|_, _, _, _| async {
|_, _, _, _, _| async {
panic!("provided TX caused recognized_id to be called in new_processors")
},
&processors,
@@ -112,7 +112,7 @@ async fn dkg_test() {
handle_new_blocks::<_, _, _, _, _, _, LocalP2p>(
&mut scanner_db,
&keys[0],
|_, _, _, _| async {
|_, _, _, _, _| async {
panic!("provided TX caused recognized_id to be called after Commitments")
},
&processors,
@@ -191,7 +191,7 @@ async fn dkg_test() {
handle_new_blocks::<_, _, _, _, _, _, LocalP2p>(
&mut scanner_db,
&keys[0],
|_, _, _, _| async {
|_, _, _, _, _| async {
panic!("provided TX caused recognized_id to be called after some shares")
},
&processors,
@@ -239,7 +239,7 @@ async fn dkg_test() {
handle_new_blocks::<_, _, _, _, _, _, LocalP2p>(
&mut scanner_db,
&keys[0],
|_, _, _, _| async { panic!("provided TX caused recognized_id to be called after shares") },
|_, _, _, _, _| async { panic!("provided TX caused recognized_id to be called after shares") },
&processors,
|_, _| async { panic!("test tried to publish a new Serai TX") },
&spec,
@@ -306,7 +306,7 @@ async fn dkg_test() {
handle_new_blocks::<_, _, _, _, _, _, LocalP2p>(
&mut scanner_db,
&keys[0],
|_, _, _, _| async {
|_, _, _, _, _| async {
panic!("provided TX caused recognized_id to be called after DKG confirmation")
},
&processors,