diff --git a/nssa/src/validated_state_diff.rs b/nssa/src/validated_state_diff.rs index 3356b72c..bdee3452 100644 --- a/nssa/src/validated_state_diff.rs +++ b/nssa/src/validated_state_diff.rs @@ -356,7 +356,13 @@ impl ValidatedStateDiff { // Check there are no duplicate nullifiers in the new_nullifiers list ensure!( - n_unique(&message.new_nullifiers) == message.new_nullifiers.len(), + n_unique( + &message + .new_nullifiers + .iter() + .map(|(n, _)| n) + .collect::>() + ) == message.new_nullifiers.len(), NssaError::InvalidInput("Duplicate nullifiers found in message".into()) ); diff --git a/tools/integration_bench/src/harness.rs b/tools/integration_bench/src/harness.rs index fb9d4d5c..813bbbab 100644 --- a/tools/integration_bench/src/harness.rs +++ b/tools/integration_bench/src/harness.rs @@ -15,7 +15,7 @@ use test_fixtures::{DiskSizes, TestContext}; use wallet::cli::SubcommandReturnValue; const TX_INCLUSION_POLL_INTERVAL: Duration = Duration::from_millis(250); -const TX_INCLUSION_TIMEOUT: Duration = Duration::from_secs(120); +const TX_INCLUSION_TIMEOUT: Duration = Duration::from_mins(2); /// Borsh-serialized sizes for one zone block fetched after a step. `block_bytes` /// is the full Block (header + body + bedrock metadata) and is the closest diff --git a/tools/integration_bench/src/main.rs b/tools/integration_bench/src/main.rs index ccf7058e..4d14f6d1 100644 --- a/tools/integration_bench/src/main.rs +++ b/tools/integration_bench/src/main.rs @@ -181,7 +181,7 @@ async fn measure_bedrock_finality(ctx: &TestContext) -> Result { .context("connect indexer WS")?; let sequencer_tip = ctx.sequencer_client().get_last_block_id().await?; - let timeout = Duration::from_secs(60); + let timeout = Duration::from_mins(1); let started = std::time::Instant::now(); let poll = async { loop {