chore: fix typos (#7877)
Co-authored-by: Dimitris Apostolou <dimitris.apostolou@icloud.com>
This commit is contained in:
parent
d0e5b2f3ef
commit
f3048653c8
|
@ -665,7 +665,7 @@ where
|
||||||
attempts += 1;
|
attempts += 1;
|
||||||
|
|
||||||
// Avoid O(n^2) algorithmic complexity by giving up early,
|
// 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 {
|
if attempts > 100 {
|
||||||
return None;
|
return None;
|
||||||
}
|
}
|
||||||
|
|
|
@ -385,7 +385,7 @@ fn node_time_check(
|
||||||
fn time_check_now() {
|
fn time_check_now() {
|
||||||
let _init_guard = zebra_test::init();
|
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.
|
// from the current time.
|
||||||
let now = Utc::now();
|
let now = Utc::now();
|
||||||
let three_hours_in_the_past = now - Duration::hours(3);
|
let three_hours_in_the_past = now - Duration::hours(3);
|
||||||
|
|
|
@ -134,7 +134,7 @@ pub fn random_known_rpc_port_config(
|
||||||
let mut config = default_test_config(network)?;
|
let mut config = default_test_config(network)?;
|
||||||
config.rpc.listen_addr = Some(zebra_rpc_listener);
|
config.rpc.listen_addr = Some(zebra_rpc_listener);
|
||||||
if parallel_cpu_threads {
|
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;
|
config.rpc.parallel_cpu_threads = 0;
|
||||||
} else {
|
} else {
|
||||||
// Default config, users who want to detect port conflicts configure this
|
// Default config, users who want to detect port conflicts configure this
|
||||||
|
|
Loading…
Reference in New Issue