Merge branch 'develop' of github.com:nymtech/nym into develop

This commit is contained in:
mfahampshire
2024-12-09 12:31:29 +01:00
4 changed files with 15 additions and 0 deletions
Generated
+1
View File
@@ -5862,6 +5862,7 @@ dependencies = [
"futures",
"log",
"nym-bin-common",
"nym-client-core",
"nym-crypto",
"nym-network-defaults",
"nym-sdk",
+1
View File
@@ -20,5 +20,6 @@ REWARDING_VALIDATOR_ADDRESS=n1rfvpsynktze6wvn6ldskj8xgwfzzk5v6pnff39
EXPLORER_API=https://qa-network-explorer.qa.nymte.ch/api/
NYXD=https://qa-validator.qa.nymte.ch
NYXD_WS=wss://qa-validator.qa.nymte.ch/websocket/
NYM_API=https://qa-nym-api.qa.nymte.ch/api/
NYM_VPN_API=https://nym-vpn-api-git-deploy-qa-nyx-network-staging.vercel.app/api/
+1
View File
@@ -30,6 +30,7 @@ utoipa-swagger-ui = { workspace = true, features = ["axum"] }
# internal
nym-bin-common = { path = "../common/bin-common" }
nym-client-core = { path = "../common/client-core" }
nym-crypto = { path = "../common/crypto" }
nym-network-defaults = { path = "../common/network-defaults" }
nym-sdk = { path = "../sdk/rust/nym-sdk" }
+12
View File
@@ -88,6 +88,7 @@ async fn make_client(topology: NymTopology) -> Result<MixnetClient> {
let mixnet_client = mixnet::MixnetClientBuilder::new_ephemeral()
.network_details(net)
.custom_topology_provider(topology_provider)
.debug_config(mixnet_debug_config(0))
// .enable_credentials_mode()
.build()?;
@@ -216,3 +217,14 @@ async fn main() -> Result<()> {
Ok(())
}
fn mixnet_debug_config(min_gateway_performance: u8) -> nym_client_core::config::DebugConfig {
let mut debug_config = nym_client_core::config::DebugConfig::default();
debug_config
.traffic
.disable_main_poisson_packet_distribution = true;
debug_config.cover_traffic.disable_loop_cover_traffic_stream = true;
debug_config.topology.minimum_gateway_performance = min_gateway_performance;
debug_config.traffic.deterministic_route_selection = true;
debug_config
}