From 701b3f61f73a14111c3ff83051806d3e035c9ea9 Mon Sep 17 00:00:00 2001 From: Svyatoslav Nikolsky Date: Fri, 3 Feb 2023 15:17:08 +0300 Subject: [PATCH] connect using wss under flag condition --- deployments/bridges/rialto-millau/docker-compose.yml | 1 + .../entrypoints/relay-millau-rialto-entrypoint.sh | 9 ++++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/deployments/bridges/rialto-millau/docker-compose.yml b/deployments/bridges/rialto-millau/docker-compose.yml index cd77dbbf122..ad61b1d174a 100644 --- a/deployments/bridges/rialto-millau/docker-compose.yml +++ b/deployments/bridges/rialto-millau/docker-compose.yml @@ -26,6 +26,7 @@ services: - ./bridges/rialto-millau/entrypoints:/entrypoints environment: RUST_LOG: rpc=trace,bridge=trace + GLOBAL_DEPLOYMENTS: $GLOBAL_DEPLOYMENTS ports: - "10016:9616" depends_on: &all-nodes diff --git a/deployments/bridges/rialto-millau/entrypoints/relay-millau-rialto-entrypoint.sh b/deployments/bridges/rialto-millau/entrypoints/relay-millau-rialto-entrypoint.sh index da809da6acc..af7ffca56d2 100755 --- a/deployments/bridges/rialto-millau/entrypoints/relay-millau-rialto-entrypoint.sh +++ b/deployments/bridges/rialto-millau/entrypoints/relay-millau-rialto-entrypoint.sh @@ -20,14 +20,17 @@ sleep 15 # Give chain a little bit of time to process initialization transaction sleep 6 +RIALTO_NODE_CONNECTION_PARAMS=$([ -z ${GLOBAL_DEPLOYMENTS} ] && \ + echo "--rialto-host rialto-node-alice --rialto-port 9944" \ + || \ + echo "--rialto-host wss.rialto.brucke.link --rialto-port 443 --rialto-secure" ) + /home/user/substrate-relay relay-headers-and-messages millau-rialto \ --millau-host millau-node-alice \ --millau-port 9944 \ --millau-signer //Rialto.HeadersAndMessagesRelay \ --millau-transactions-mortality=64 \ - --rialto-host wss.rialto.brucke.link \ - --rialto-port 443 \ - --rialto-secure \ + $RIALTO_NODE_CONNECTION_PARAMS \ --rialto-signer //Millau.HeadersAndMessagesRelay \ --rialto-transactions-mortality=64 \ --lane=00000000 \