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

Merged
nabarun merged 2 commits from pm-extaddr-config into main 2024-07-23 11:46:47 +00:00
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}"