Use extMultiAddr flags in bridge setup

This commit is contained in:
Prathamesh Musale 2024-07-23 17:11:53 +05:30
parent f37245ee39
commit f2c79c2a5b
2 changed files with 6 additions and 0 deletions

View File

@ -20,6 +20,8 @@ services:
NITRO_L2_MSG_PORT: ${NITRO_L2_MSG_PORT:-3006} NITRO_L2_MSG_PORT: ${NITRO_L2_MSG_PORT:-3006}
NITRO_RPC_PORT: ${NITRO_RPC_PORT:-4006} NITRO_RPC_PORT: ${NITRO_RPC_PORT:-4006}
NITRO_PUBLIC_P2P_HOST: ${NITRO_PUBLIC_P2P_HOST:-127.0.0.1} 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 NITRO_PUBLIC_RPC_HOST: nitro-bridge
entrypoint: ["bash", "-c", "/app/run-bridge.sh"] entrypoint: ["bash", "-c", "/app/run-bridge.sh"]
volumes: volumes:

View File

@ -18,6 +18,8 @@ echo "NITRO_L1_MSG_PORT: ${NITRO_L1_MSG_PORT}"
echo "NITRO_L2_MSG_PORT: ${NITRO_L2_MSG_PORT}" echo "NITRO_L2_MSG_PORT: ${NITRO_L2_MSG_PORT}"
echo "NITRO_RPC_PORT: ${NITRO_RPC_PORT}" echo "NITRO_RPC_PORT: ${NITRO_RPC_PORT}"
echo "NITRO_PUBLIC_P2P_HOST: ${NITRO_PUBLIC_P2P_HOST}" 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" echo "Waiting for $bridge_assets_map_file to be ready"
@ -40,6 +42,8 @@ nodel1msgport = $NITRO_L1_MSG_PORT
nodel2msgport = $NITRO_L2_MSG_PORT nodel2msgport = $NITRO_L2_MSG_PORT
rpcport = $NITRO_RPC_PORT rpcport = $NITRO_RPC_PORT
bridgepublicip = "$NITRO_PUBLIC_P2P_HOST" bridgepublicip = "$NITRO_PUBLIC_P2P_HOST"
nodel1ExtMultiAddr = "$NITRO_L1_EXT_MULTIADDR"
nodel2ExtMultiAddr = "$NITRO_L2_EXT_MULTIADDR"
assetmapfilepath = "$bridge_assets_map_file" assetmapfilepath = "$bridge_assets_map_file"
EOF EOF