Skip to content

Commit

Permalink
fix: fix build raw spec when a plain spec is set (#1808)
Browse files Browse the repository at this point in the history
  • Loading branch information
pepoviola authored May 24, 2024
1 parent 1d04684 commit f78b1d5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
19 changes: 10 additions & 9 deletions javascript/packages/orchestrator/src/configGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,17 +177,18 @@ export async function generateNetworkSpec(
} else {
networkSpec.relaychain.chainSpecPath = chainSpecPath;
}
} else {
// Create the chain spec
networkSpec.relaychain.chainSpecCommand = config.relaychain
.chain_spec_command
? config.relaychain.chain_spec_command
: DEFAULT_CHAIN_SPEC_COMMAND.replace(
"{{DEFAULT_COMMAND}}",
networkSpec.relaychain.defaultCommand,
);
}

// even if we have a chain_spec_path we need to set
// the command to generate the raw version

networkSpec.relaychain.chainSpecCommand = config.relaychain.chain_spec_command
? config.relaychain.chain_spec_command
: DEFAULT_CHAIN_SPEC_COMMAND.replace(
"{{DEFAULT_COMMAND}}",
networkSpec.relaychain.defaultCommand,
);

const relayChainBootnodes: string[] = [];

for (const node of config.relaychain.nodes || []) {
Expand Down
3 changes: 1 addition & 2 deletions javascript/packages/orchestrator/src/orchestrator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -297,8 +297,7 @@ export async function start(
namespace,
networkSpec.relaychain.defaultImage,
chainName,
networkSpec.relaychain.chainSpecCommand ||
networkSpec.relaychain.defaultCommand,
networkSpec.relaychain.chainSpecCommand!,
chainSpecFullPath,
);
} else {
Expand Down

0 comments on commit f78b1d5

Please sign in to comment.