Skip to content

Commit 1991c39

Browse files
committed
zero-hop as defailt neighborhood-mode
1 parent 820eeb5 commit 1991c39

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

masq/tests/startup_shutdown_tests_integration.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ fn masq_terminates_based_on_loss_of_connection_to_the_daemon_integration() {
8585
assert_eq!(exit_code, None);
8686
#[cfg(target_os = "windows")]
8787
assert_eq!(exit_code.unwrap(), 1);
88-
assert!(stdout.contains("neighborhood-mode standard Default"));
88+
assert!(stdout.contains("neighborhood-mode zero-hop Default"));
8989
assert_eq!(
9090
stderr,
9191
"\nThe Daemon is no longer running; masq is terminating.\n\n"

node/src/daemon/setup_reporter.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -986,7 +986,7 @@ impl ValueRetriever for NeighborhoodMode {
986986
_persistent_config: &dyn PersistentConfiguration,
987987
_db_password_opt: &Option<String>,
988988
) -> Option<(String, UiSetupResponseValueStatus)> {
989-
Some(("standard".to_string(), Default))
989+
Some(("zero-hop".to_string(), Default))
990990
}
991991

992992
fn is_required(&self, _params: &SetupCluster) -> bool {
@@ -1448,7 +1448,7 @@ mod tests {
14481448
("log-level", "warn", Default),
14491449
("mapping-protocol", "", Blank),
14501450
("min-hops", &DEFAULT_MIN_HOPS.to_string(), Default),
1451-
("neighborhood-mode", "standard", Default),
1451+
("neighborhood-mode", "zero-hop", Default),
14521452
(
14531453
"neighbors",
14541454
"masq://eth-mainnet:[email protected]:1234,masq://eth-mainnet:[email protected]:5678",
@@ -3287,7 +3287,7 @@ mod tests {
32873287
&None,
32883288
);
32893289

3290-
assert_eq!(result, Some(("standard".to_string(), Default)))
3290+
assert_eq!(result, Some(("zero-hop".to_string(), Default)))
32913291
}
32923292

32933293
#[test]

0 commit comments

Comments
 (0)