From d131301d782960c5244fa1927edbb94e7b99e911 Mon Sep 17 00:00:00 2001 From: andrussal Date: Sat, 11 Apr 2026 07:21:12 +0200 Subject: [PATCH] fix(local): preserve initial reserved ports for generated nodes --- testing-framework/deployers/local/src/env/mod.rs | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/testing-framework/deployers/local/src/env/mod.rs b/testing-framework/deployers/local/src/env/mod.rs index e3df1fe..9fbce4b 100644 --- a/testing-framework/deployers/local/src/env/mod.rs +++ b/testing-framework/deployers/local/src/env/mod.rs @@ -111,14 +111,20 @@ where Self::initial_node_name_prefix(), Self::initial_local_port_names(), |context| { - Self::build_node_config_from_template( + let config = Self::build_local_node_config_with_peers( context.topology, context.index, + context.ports, + context.peers, context.peer_ports_by_name, context.options, - context.peer_ports, context.template_config, - ) + )?; + + Ok(BuiltNodeConfig { + config, + network_port: context.ports.network_port(), + }) }, ) }