We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 035b84a commit 09505caCopy full SHA for 09505ca
1 file changed
shared/services/rocketpool/assets/install/scripts/start-ec.sh
@@ -296,14 +296,17 @@ if [ "$CLIENT" = "besu" ]; then
296
--host-allowlist=* \
297
--rpc-http-max-active-connections=1024 \
298
--nat-method=docker \
299
- --p2p-host=$EXTERNAL_IP \
300
--engine-rpc-enabled \
301
--engine-rpc-port=${EC_ENGINE_PORT:-8551} \
302
--engine-host-allowlist=* \
303
--engine-jwt-secret=/secrets/jwtsecret \
304
--Xbonsai-full-flat-db-enabled=true \
305
$EC_ADDITIONAL_FLAGS"
306
+ if [ ! -z "$EXTERNAL_IP" ]; then
307
+ CMD="$CMD --p2p-host=$EXTERNAL_IP"
308
+ fi
309
+
310
if [ ! -z "$EC_SUGGESTED_BLOCK_GAS_LIMIT" ]; then
311
CMD="$CMD --target-gas-limit=$EC_SUGGESTED_BLOCK_GAS_LIMIT"
312
fi
0 commit comments