From 6371de9654991e1038dd98eb317b4afba2f8901d Mon Sep 17 00:00:00 2001 From: andrussal Date: Wed, 10 Dec 2025 10:49:40 +0100 Subject: [PATCH] Add shared defaults for node ports/timeouts --- testing-framework/core/src/constants.rs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/testing-framework/core/src/constants.rs b/testing-framework/core/src/constants.rs index d1c1ec2..fdbf3ba 100644 --- a/testing-framework/core/src/constants.rs +++ b/testing-framework/core/src/constants.rs @@ -33,6 +33,21 @@ pub const DEFAULT_PROMETHEUS_HTTP_PROBE_TIMEOUT: Duration = Duration::from_secs( /// Default Prometheus service name. pub const DEFAULT_PROMETHEUS_SERVICE_NAME: &str = "prometheus"; +/// Default API port used by nodes. +pub const DEFAULT_API_PORT: u16 = 18080; + +/// Default testing HTTP port used by nodes. +pub const DEFAULT_TESTING_HTTP_PORT: u16 = 18081; + +/// Default libp2p network port. +pub const DEFAULT_LIBP2P_NETWORK_PORT: u16 = 3000; + +/// Default DA network port. +pub const DEFAULT_DA_NETWORK_PORT: u16 = 3300; + +/// Default blend network port. +pub const DEFAULT_BLEND_NETWORK_PORT: u16 = 4401; + /// Resolve cfgsync port from `NOMOS_CFGSYNC_PORT`, falling back to the default. pub fn cfgsync_port() -> u16 { env::var("NOMOS_CFGSYNC_PORT")