From f3048653c87908f45cc8fe81e984e94fbcb3eac0 Mon Sep 17 00:00:00 2001 From: Alfredo Garcia Date: Mon, 30 Oct 2023 17:06:35 -0300 Subject: [PATCH] chore: fix typos (#7877) Co-authored-by: Dimitris Apostolou --- zebra-chain/src/block/arbitrary.rs | 2 +- zebra-chain/src/block/tests/vectors.rs | 2 +- zebrad/tests/common/config.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/zebra-chain/src/block/arbitrary.rs b/zebra-chain/src/block/arbitrary.rs index dc06d4ff4..4db23bfd2 100644 --- a/zebra-chain/src/block/arbitrary.rs +++ b/zebra-chain/src/block/arbitrary.rs @@ -665,7 +665,7 @@ where attempts += 1; // Avoid O(n^2) algorithmic complexity by giving up early, - // rather than exhausively checking the entire UTXO set + // rather than exhaustively checking the entire UTXO set if attempts > 100 { return None; } diff --git a/zebra-chain/src/block/tests/vectors.rs b/zebra-chain/src/block/tests/vectors.rs index 257614bec..1cbf17f8c 100644 --- a/zebra-chain/src/block/tests/vectors.rs +++ b/zebra-chain/src/block/tests/vectors.rs @@ -385,7 +385,7 @@ fn node_time_check( fn time_check_now() { let _init_guard = zebra_test::init(); - // These checks are deteministic, because all the times are offset + // These checks are deterministic, because all the times are offset // from the current time. let now = Utc::now(); let three_hours_in_the_past = now - Duration::hours(3); diff --git a/zebrad/tests/common/config.rs b/zebrad/tests/common/config.rs index dd2d4544b..38dd75d4a 100644 --- a/zebrad/tests/common/config.rs +++ b/zebrad/tests/common/config.rs @@ -134,7 +134,7 @@ pub fn random_known_rpc_port_config( let mut config = default_test_config(network)?; config.rpc.listen_addr = Some(zebra_rpc_listener); if parallel_cpu_threads { - // Auto-configure to the number of CPU cores: most users configre this + // Auto-configure to the number of CPU cores: most users configure this config.rpc.parallel_cpu_threads = 0; } else { // Default config, users who want to detect port conflicts configure this