Skip to content

Commit 9e76661

Browse files
authored
zombienet fixes (#313)
1 parent 9fb5abb commit 9e76661

File tree

5 files changed

+72
-27
lines changed

5 files changed

+72
-27
lines changed

.gitignore

+3-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ docs/node_modules
2121
docs/build
2222

2323
# zombienet stuff
24-
**/zombienet-macos
24+
**/zombienet-macos-arm64
25+
**/zombienet-macos-x64
26+
**/zombienet-linux-arm64
2527
**/zombienet-linux-x64
2628
**/bin-*

evm-template/scripts/zombienet.sh

+24-3
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,41 @@
11
#!/bin/bash
22

3-
ZOMBIENET_V=v1.3.91
3+
ZOMBIENET_V=v1.3.106
44
POLKADOT_V=v1.6.0
55

6+
# Detect the operating system
67
case "$(uname -s)" in
78
Linux*) MACHINE=Linux;;
89
Darwin*) MACHINE=Mac;;
910
*) exit 1
1011
esac
1112

13+
# Detect the architecture
14+
ARCH=$(uname -m)
15+
16+
# Set the executable name based on the OS and architecture
1217
if [ $MACHINE = "Linux" ]; then
13-
ZOMBIENET_BIN=zombienet-linux-x64
18+
if [ $ARCH = "x86_64" ]; then
19+
ZOMBIENET_BIN=zombienet-linux-x64
20+
elif [ $ARCH = "arm64" ] || [ $ARCH = "aarch64" ]; then
21+
ZOMBIENET_BIN=zombienet-linux-arm64
22+
else
23+
echo "Unsupported Linux architecture: $ARCH"
24+
exit 1
25+
fi
1426
elif [ $MACHINE = "Mac" ]; then
15-
ZOMBIENET_BIN=zombienet-macos
27+
if [ $ARCH = "x86_64" ]; then
28+
ZOMBIENET_BIN=zombienet-macos-x86
29+
elif [ $ARCH = "arm64" ]; then
30+
ZOMBIENET_BIN=zombienet-macos-arm64
31+
else
32+
echo "Unsupported macOS architecture: $ARCH"
33+
exit 1
34+
fi
1635
fi
1736

37+
echo "Using binary: $ZOMBIENET_BIN"
38+
1839
BIN_DIR=bin-$POLKADOT_V
1940

2041
build_polkadot() {

evm-template/zombienet-config/devnet.toml

+19-18
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,31 @@
22
chain = "rococo-local"
33
default_command = "./bin-v1.6.0/polkadot"
44

5-
[[relaychain.nodes]]
6-
name = "alice"
7-
validator = true
5+
[[relaychain.nodes]]
6+
name = "alice"
7+
validator = true
88

9-
[[relaychain.nodes]]
10-
name = "bob"
11-
validator = true
9+
[[relaychain.nodes]]
10+
name = "bob"
11+
validator = true
1212

1313
[[parachains]]
1414
id = 1000
1515
addToGenesis = true
1616
cumulus_based = true
1717
chain = "dev"
18+
force_decorator = "generic-evm"
1819

19-
[[parachains.collators]]
20-
name = "collator01"
21-
command = "./target/release/parachain-template-node"
22-
ws_port = 9933
23-
rpc_port = 8833
24-
args = ["--rpc-max-connections 10000"]
20+
[[parachains.collators]]
21+
name = "collator01"
22+
command = "./target/release/evm-template-node"
23+
ws_port = 9933
24+
rpc_port = 8833
25+
args = ["--rpc-max-connections 10000"]
2526

26-
[[parachains.collators]]
27-
name = "collator02"
28-
ws_port = 9822
29-
rpc_port = 8822
30-
command = "./target/release/parachain-template-node"
31-
args = ["--rpc-max-connections 10000"]
27+
[[parachains.collators]]
28+
name = "collator02"
29+
ws_port = 9822
30+
rpc_port = 8822
31+
command = "./target/release/evm-template-node"
32+
args = ["--rpc-max-connections 10000"]

generic-template/scripts/zombienet.sh

+24-3
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,41 @@
11
#!/bin/bash
22

3-
ZOMBIENET_V=v1.3.91
3+
ZOMBIENET_V=v1.3.106
44
POLKADOT_V=v1.6.0
55

6+
# Detect the operating system
67
case "$(uname -s)" in
78
Linux*) MACHINE=Linux;;
89
Darwin*) MACHINE=Mac;;
910
*) exit 1
1011
esac
1112

13+
# Detect the architecture
14+
ARCH=$(uname -m)
15+
16+
# Set the executable name based on the OS and architecture
1217
if [ $MACHINE = "Linux" ]; then
13-
ZOMBIENET_BIN=zombienet-linux-x64
18+
if [ $ARCH = "x86_64" ]; then
19+
ZOMBIENET_BIN=zombienet-linux-x64
20+
elif [ $ARCH = "arm64" ] || [ $ARCH = "aarch64" ]; then
21+
ZOMBIENET_BIN=zombienet-linux-arm64
22+
else
23+
echo "Unsupported Linux architecture: $ARCH"
24+
exit 1
25+
fi
1426
elif [ $MACHINE = "Mac" ]; then
15-
ZOMBIENET_BIN=zombienet-macos
27+
if [ $ARCH = "x86_64" ]; then
28+
ZOMBIENET_BIN=zombienet-macos-x86
29+
elif [ $ARCH = "arm64" ]; then
30+
ZOMBIENET_BIN=zombienet-macos-arm64
31+
else
32+
echo "Unsupported macOS architecture: $ARCH"
33+
exit 1
34+
fi
1635
fi
1736

37+
echo "Using binary: $ZOMBIENET_BIN"
38+
1839
BIN_DIR=bin-$POLKADOT_V
1940

2041
build_polkadot() {

generic-template/zombienet-config/devnet.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ chain = "dev"
1818

1919
[[parachains.collators]]
2020
name = "collator01"
21-
command = "./target/release/parachain-template-node"
21+
command = "./target/release/generic-template-node"
2222
ws_port = 9933
2323
rpc_port = 8833
2424
args = ["--rpc-max-connections 10000"]
@@ -27,5 +27,5 @@ args = ["--rpc-max-connections 10000"]
2727
name = "collator02"
2828
ws_port = 9822
2929
rpc_port = 8822
30-
command = "./target/release/parachain-template-node"
30+
command = "./target/release/generic-template-node"
3131
args = ["--rpc-max-connections 10000"]

0 commit comments

Comments
 (0)