diff --git a/docker-compose.yml b/docker-compose.yml index c88064344..655d75b64 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -10,6 +10,7 @@ services: - "7301:6060" # metrics - "30303:30303" # P2P TCP - "30303:30303/udp" # P2P UDP + - "9200:9200/udp" # P2P Discovery v5 command: ["bash", "./execution-entrypoint"] volumes: - ${HOST_DATA_DIR:-./reth-data}:/data diff --git a/execution-entrypoint b/execution-entrypoint index cea226016..de084ddf3 100755 --- a/execution-entrypoint +++ b/execution-entrypoint @@ -68,7 +68,7 @@ wait_for_pid() { } # Add pruning for base -if [[ "${RETH_PRUNING_ARGS+x}" = x ]]; then +if [[ -n "${RETH_PRUNING_ARGS:-}" ]]; then echo "Adding pruning arguments: $RETH_PRUNING_ARGS" ADDITIONAL_ARGS="$ADDITIONAL_ARGS $RETH_PRUNING_ARGS" fi