From 501113519804354286c0c7106f8ad69d2d9f5dff Mon Sep 17 00:00:00 2001 From: jangko Date: Mon, 29 Jan 2024 20:15:05 +0700 Subject: [PATCH] clients/nimbus-el: Change command line options to use combo HTTP server for RPC --- clients/nimbus-el/nimbus.sh | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/clients/nimbus-el/nimbus.sh b/clients/nimbus-el/nimbus.sh index 446fdf5691..2a29a1e818 100644 --- a/clients/nimbus-el/nimbus.sh +++ b/clients/nimbus-el/nimbus.sh @@ -115,14 +115,17 @@ fi set -e -# Configure RPC. +# Configure RPC +FLAGS="$FLAGS --http-address:0.0.0.0 --http-port:8545" +FLAGS="$FLAGS --rpc --rpc-api:eth,debug" +FLAGS="$FLAGS --ws --ws-api:eth,debug" + +# Configure graphql if [ "$HIVE_GRAPHQL_ENABLED" != "" ]; then - FLAGS="$FLAGS --graphql --graphql-address:0.0.0.0 --graphql-port:8545" -else - FLAGS="$FLAGS --rpc --rpc-api:eth,debug --rpc-address:0.0.0.0 --rpc-port:8545" - FLAGS="$FLAGS --ws --ws-api:eth,debug --ws-address:0.0.0.0 --ws-port:8546" + FLAGS="$FLAGS --graphql" fi +# Configure engine api if [ "$HIVE_TERMINAL_TOTAL_DIFFICULTY" != "" ]; then echo "0x7365637265747365637265747365637265747365637265747365637265747365" > /jwtsecret FLAGS="$FLAGS --engine-api:true --engine-api-address:0.0.0.0 --engine-api-port:8551 --jwt-secret:/jwtsecret"