Closed pepoviola closed 2 months ago
Hi @Szegoo, I try to reproduce this issue but works as expected on my end. Can you check the version of zombienet with
./zombienet-macos version
1.3.100
And also the polkadot version, I used the v1.10.0 image
POLKADOT_IMAGE=parity/polkadot:v1.10.0 ./zombienet-macos test support-files/1773.zndsl
Thanks!!
Thanks for checking this. I am getting the polkadot binaries with: zombienet setup polkadot
. The SE question was a bit missleading in this regard. I thought that zombienet was pulling an image from docker and getting the binary from there.
After setting my path I run:
zombienet-linux -p native test zombienet_tests/0001-network-test.zndsl
I double checked my version, and it is indeed 1.3.100
Hi @Szegoo, thanks for the info. I try from the scratch:
curl -L -O https://github.com/paritytech/zombienet/releases/download/v1.3.100/zombienet-linux-x64 && chmod +x zombienet-linux-x64
Then run the setup
./zombienet-linux-x64 setup polkadot
and export the path
export PATH=/home/pepoviola/1773:$PATH
and run it
./zombienet-linux-x64 -p native test 1773.zndsl
(1773.zndsl is the same file you paste in se)
This works as expected,
Can you check if the polkadot version you are using is the one downloaded from the setup? ensure that you are exporting the new PATH with the directory as the output of setup
mention.
Thanks!!
I did it from scratch as well, and it worked. It is possible (but unlikely) that I had the wrong Polkadot binaries. If I figure out what was causing the issue, I will post it here. Thanks!
I did it from scratch as well, and it worked. It is possible (but unlikely) that I had the wrong Polkadot binaries. If I figure out what was causing the issue, I will post it here. Thanks!
Great, thanks! I think could be the case that the downloaded binaries were not the first option in the PATH
and that why pick a wrong ones, but let me know if you see another issue.
Thanks!!
Ok, I think I discovered when the issue is occuring. Whenever I add the header types to the zombienet toml file I am getting the error. For example:
[settings]
timeout = 1000
[relaychain]
chain = "rococo-local"
command = "polkadot"
[[relaychain.nodes]]
name = "alice"
validator = true
[[relaychain.nodes]]
name = "bob"
validator = true
[types.Header]
number = "u64"
parent_hash = "Hash"
post_state = "Hash"
Hi @Szegoo, that make sense since if you supply a Header
type polkadot.js will use that (overriding the default one) and that Header
in particular works for adder/undying collators. I think we should add a brief explanation on how this works in our docs.
Thanks for checking this and figure out!
Closing here @Szegoo, I will update the docs. Thanks for reporting!
check https://substrate.stackexchange.com/questions/11328/zombienet-js-script-weird-behaviour