-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: offchain worker test uses build-spec-dancelight-single-containe…
…r.sh setup script that spawns only 1 container chain
- Loading branch information
Aleksandar Brayanov
committed
Nov 5, 2024
1 parent
3faffe0
commit 7834cad
Showing
2 changed files
with
18 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
|
||
# Exit on any error | ||
set -e | ||
|
||
# Always run the commands from the "test" dir | ||
cd $(dirname $0)/.. | ||
|
||
if [[ -z "${1}" || ${1} == "undefined" ]]; then | ||
BINARY_FOLDER="../target/release" | ||
else | ||
BINARY_FOLDER="${1}" | ||
fi | ||
|
||
mkdir -p specs | ||
$BINARY_FOLDER/container-chain-simple-node build-spec --disable-default-bootnode --add-bootnode "/ip4/127.0.0.1/tcp/33049/ws/p2p/12D3KooWHVMhQDHBpj9vQmssgyfspYecgV6e3hH1dQVDUkUbCYC9" --parachain-id 2000 --raw > specs/single-container-template-container-2000.json | ||
$BINARY_FOLDER/tanssi-relay build-spec --chain dancelight-local --add-container-chain specs/single-container-template-container-2000.json --invulnerable "Collator-01" --invulnerable "Collator-02" > specs/tanssi-relay.json |