From 8a9e6c1795cc296a9983561e5c1d633e8499e13a Mon Sep 17 00:00:00 2001 From: nasihudeen04 Date: Sun, 12 Jul 2026 22:13:41 +0100 Subject: [PATCH] Use export-chain-spec as the default chain-spec command. build-spec was removed from polkadot-sdk node CLIs; export-chain-spec is the replacement. Bootnodes are still customized after generation. --- crates/orchestrator/src/shared/constants.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/crates/orchestrator/src/shared/constants.rs b/crates/orchestrator/src/shared/constants.rs index acf4701e4..fbae97f1e 100644 --- a/crates/orchestrator/src/shared/constants.rs +++ b/crates/orchestrator/src/shared/constants.rs @@ -8,9 +8,11 @@ pub const RPC_PORT: u16 = 9944; pub const RPC_HTTP_PORT: u16 = 9933; // P2P default port pub const P2P_PORT: u16 = 30333; -// default command template to build chain-spec +// Default command template to export a chain-spec. +// `export-chain-spec` replaced the deprecated `build-spec` CLI in polkadot-sdk. +// Bootnodes are customized after generation, so `--disable-default-bootnode` is unused. pub const DEFAULT_CHAIN_SPEC_TPL_COMMAND: &str = - "{{mainCommand}} build-spec --chain {{chainName}} {{disableBootnodes}}"; + "{{mainCommand}} export-chain-spec --chain {{chainName}}"; // interval to determine how often to run node liveness checks pub const NODE_MONITORING_INTERVAL_SECONDS: u64 = 15; // how long to wait before a node is considered unresponsive