Configure extra multiaddr to listen on in nitro-node and bridge setup (#1)

Part of [Create bridge channel in go-nitro](https://www.notion.so/Create-bridge-channel-in-go-nitro-22ce80a0d8ae4edb80020a8f250ea270)
Requires https://github.com/cerc-io/go-nitro/pull/63

Reviewed-on: #1
Co-authored-by: Prathamesh Musale <prathamesh.musale0@gmail.com>
Co-committed-by: Prathamesh Musale <prathamesh.musale0@gmail.com>
This commit is contained in:
Prathamesh Musale 2024-07-23 11:46:46 +00:00 committed by nabarun
parent e3a8b25850
commit fe85e74425
4 changed files with 10 additions and 1 deletions

View File

@ -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:

View File

@ -14,6 +14,7 @@ services:
NITRO_CHAIN_URL: ${NITRO_CHAIN_URL}
NITRO_BOOTPEERS: ${NITRO_BOOTPEERS}
NITRO_PUBLIC_P2P_HOST: ${NITRO_PUBLIC_P2P_HOST:-127.0.0.1}
NITRO_EXT_MULTIADDR: ${NITRO_EXT_MULTIADDR}
NITRO_L2: ${NITRO_L2:-false}
NA_ADDRESS: ${NA_ADDRESS}
CA_ADDRESS: ${CA_ADDRESS}

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_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

View File

@ -15,6 +15,7 @@ echo "NITRO_CHAIN_PK: ${NITRO_CHAIN_PK}"
echo "NITRO_CHAIN_URL: ${NITRO_CHAIN_URL}"
echo "NITRO_BOOTPEERS: ${NITRO_BOOTPEERS}"
echo "NITRO_PUBLIC_P2P_HOST: ${NITRO_PUBLIC_P2P_HOST}"
echo "NITRO_EXT_MULTIADDR: ${NITRO_EXT_MULTIADDR}"
echo "NITRO_L2: ${NITRO_L2}"
echo "Using Nitro contract addresses:"
@ -35,7 +36,8 @@ pk = "${NITRO_SC_PK}"
chainpk = "${NITRO_CHAIN_PK}"
chainurl = "${NITRO_CHAIN_URL}"
bootpeers = "${NITRO_BOOTPEERS}"
bridgepublicip = "${NITRO_PUBLIC_P2P_HOST}"
publicip = "${NITRO_PUBLIC_P2P_HOST}"
extMultiAddr = "${NITRO_EXT_MULTIADDR}"
l2 = ${NITRO_L2}
naaddress = "${NA_ADDRESS}"