Skip to content

Commit

Permalink
dbg++++
Browse files Browse the repository at this point in the history
  • Loading branch information
svyatonik committed Nov 24, 2023
1 parent 8653c05 commit 0ebc852
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion bridges/zombienet/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ To start those tests, you need to:
- build Substrate relay by running `cargo build -p substrate-relay --release` command in the
[`parity-bridges-common`](https://github.com/paritytech/parity-bridges-common) repository clone.

- copy fresh `substrate-relay` binary, built in previous point, to the `~/local_bridge_testing/bin/substrate-relay`;
- copy fresh `substrate-relay` binary, built in previous point, to the `/usr/local/bin/substrate-relay`;

- change the `POLKADOT_SDK_FOLDER` and `ZOMBIENET_BINARY_PATH` (and ensure that the nearby variables
have correct values) in the `./run-tests.sh`.
Expand Down
2 changes: 1 addition & 1 deletion bridges/zombienet/run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ trap "trap - SIGTERM && kill -- -$$" SIGINT SIGTERM EXIT
# assuming that we'll be using native provide && all processes will be executing locally
# (we need absolute paths here, because they're used when scripts are called by zombienet from tmp folders)
export POLKADOT_SDK_FOLDER=`realpath $(dirname "$0")/../..`
export BRIDGE_TESTS_FOLDER=$POLKADOT_SDK_FOLDER/zombienet/tests
export BRIDGE_TESTS_FOLDER=$POLKADOT_SDK_FOLDER/bridges/zombienet/tests
export POLKADOT_BINARY_PATH=/usr/local/bin/polkadot
export POLKADOT_PARACHAIN_BINARY_PATH=/usr/local/bin/polkadot-parachain
export POLKADOT_PARACHAIN_BINARY_PATH_FOR_ASSET_HUB_ROCOCO=/usr/local/bin/polkadot-parachain
Expand Down
2 changes: 1 addition & 1 deletion cumulus/parachains/runtimes/bridge-hubs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ cd parity-bridges-common
git checkout -b polkadot-staging --track origin/polkadot-staging
cargo build --release -p substrate-relay
cp target/release/substrate-relay ~/local_bridge_testing/bin/substrate-relay
cp target/release/substrate-relay /usr/local/bin/substrate-relay
---
Expand Down
4 changes: 2 additions & 2 deletions cumulus/scripts/bridges_common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ function ensure_binaries() {
}

function ensure_relayer() {
if [[ ! -f ~/local_bridge_testing/bin/substrate-relay ]]; then
echo " Required substrate-relay binary '~/local_bridge_testing/bin/substrate-relay' does not exist!"
if [[ ! -f /usr/local/bin/substrate-relay ]]; then
echo " Required substrate-relay binary '/usr/local/bin/substrate-relay' does not exist!"
echo " You need to build it and copy to this location!"
echo " Please, check ./parachains/runtimes/bridge-hubs/README.md (Prepare/Build/Deploy)"
exit 1
Expand Down
6 changes: 3 additions & 3 deletions cumulus/scripts/bridges_rococo_westend.sh
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ function init_ro_wnd() {
ensure_relayer

RUST_LOG=runtime=trace,rpc=trace,bridge=trace \
~/local_bridge_testing/bin/substrate-relay init-bridge rococo-to-bridge-hub-westend \
/usr/local/bin/substrate-relay init-bridge rococo-to-bridge-hub-westend \
--source-host localhost \
--source-port 9942 \
--source-version-mode Auto \
Expand All @@ -148,7 +148,7 @@ function init_wnd_ro() {
ensure_relayer

RUST_LOG=runtime=trace,rpc=trace,bridge=trace \
~/local_bridge_testing/bin/substrate-relay init-bridge westend-to-bridge-hub-rococo \
/usr/local/bin/substrate-relay init-bridge westend-to-bridge-hub-rococo \
--source-host localhost \
--source-port 9945 \
--source-version-mode Auto \
Expand All @@ -162,7 +162,7 @@ function run_relay() {
ensure_relayer

RUST_LOG=runtime=trace,rpc=trace,bridge=trace \
~/local_bridge_testing/bin/substrate-relay relay-headers-and-messages bridge-hub-rococo-bridge-hub-westend \
/usr/local/bin/substrate-relay relay-headers-and-messages bridge-hub-rococo-bridge-hub-westend \
--rococo-host localhost \
--rococo-port 9942 \
--rococo-version-mode Auto \
Expand Down

0 comments on commit 0ebc852

Please sign in to comment.