From f2c79c2a5bcd40698f414923e37a9d8ad41da838 Mon Sep 17 00:00:00 2001 From: Prathamesh Musale Date: Tue, 23 Jul 2024 17:11:53 +0530 Subject: [PATCH] Use extMultiAddr flags in bridge setup --- stack-orchestrator/compose/docker-compose-nitro-bridge.yml | 2 ++ stack-orchestrator/config/go-nitro/run-bridge.sh | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/stack-orchestrator/compose/docker-compose-nitro-bridge.yml b/stack-orchestrator/compose/docker-compose-nitro-bridge.yml index caae62e..f8eeca7 100644 --- a/stack-orchestrator/compose/docker-compose-nitro-bridge.yml +++ b/stack-orchestrator/compose/docker-compose-nitro-bridge.yml @@ -20,6 +20,8 @@ services: NITRO_L2_MSG_PORT: ${NITRO_L2_MSG_PORT:-3006} NITRO_RPC_PORT: ${NITRO_RPC_PORT:-4006} NITRO_PUBLIC_P2P_HOST: ${NITRO_PUBLIC_P2P_HOST:-127.0.0.1} + NITRO_L1_EXT_MULTIADDR: ${NITRO_L1_EXT_MULTIADDR} + NITRO_L2_EXT_MULTIADDR: ${NITRO_L2_EXT_MULTIADDR} NITRO_PUBLIC_RPC_HOST: nitro-bridge entrypoint: ["bash", "-c", "/app/run-bridge.sh"] volumes: diff --git a/stack-orchestrator/config/go-nitro/run-bridge.sh b/stack-orchestrator/config/go-nitro/run-bridge.sh index a30bb2e..906d84a 100755 --- a/stack-orchestrator/config/go-nitro/run-bridge.sh +++ b/stack-orchestrator/config/go-nitro/run-bridge.sh @@ -18,6 +18,8 @@ echo "NITRO_L1_MSG_PORT: ${NITRO_L1_MSG_PORT}" echo "NITRO_L2_MSG_PORT: ${NITRO_L2_MSG_PORT}" echo "NITRO_RPC_PORT: ${NITRO_RPC_PORT}" echo "NITRO_PUBLIC_P2P_HOST: ${NITRO_PUBLIC_P2P_HOST}" +echo "NITRO_L1_EXT_MULTIADDR: ${NITRO_L1_EXT_MULTIADDR}" +echo "NITRO_L2_EXT_MULTIADDR: ${NITRO_L2_EXT_MULTIADDR}" echo "Waiting for $bridge_assets_map_file to be ready" @@ -40,6 +42,8 @@ nodel1msgport = $NITRO_L1_MSG_PORT nodel2msgport = $NITRO_L2_MSG_PORT rpcport = $NITRO_RPC_PORT bridgepublicip = "$NITRO_PUBLIC_P2P_HOST" +nodel1ExtMultiAddr = "$NITRO_L1_EXT_MULTIADDR" +nodel2ExtMultiAddr = "$NITRO_L2_EXT_MULTIADDR" assetmapfilepath = "$bridge_assets_map_file" EOF