From a68c3347e2251ecc234d75913b4fa8c16bac19b6 Mon Sep 17 00:00:00 2001 From: Itay Date: Mon, 7 Aug 2023 15:28:10 +0300 Subject: [PATCH] chore: Update README to Include Custom JSON-RPC Ports Usage (#287) Co-authored-by: Michael Tsitrin --- scripts/setup_local.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/setup_local.sh b/scripts/setup_local.sh index ba08f9176..2fd97390f 100755 --- a/scripts/setup_local.sh +++ b/scripts/setup_local.sh @@ -68,8 +68,8 @@ sed -i'' -e "/\[p2p\]/,+3 s/laddr *= .*/laddr = \"tcp:\/\/$P2P_ADDRESS\"/" "$TEN sed -i'' -e "/\[grpc\]/,+6 s/address *= .*/address = \"$GRPC_ADDRESS\"/" "$APP_CONFIG_FILE" sed -i'' -e "/\[grpc-web\]/,+7 s/address *= .*/address = \"$GRPC_WEB_ADDRESS\"/" "$APP_CONFIG_FILE" -sed -i'' -e "/\[[json-rpc]\]/,+6 s/address *= .*/address = \"$JSONRPC_ADDRESS\"/" "$APP_CONFIG_FILE" -sed -i'' -e "/\[[json-rpc]\]/,+9 s/address *= .*/address = \"$JSONRPC_WS_ADDRESS\"/" "$APP_CONFIG_FILE" +sed -i'' -e "/\[json-rpc\]/,+6 s/address *= .*/address = \"$JSONRPC_ADDRESS\"/" "$APP_CONFIG_FILE" +sed -i'' -e "/\[json-rpc\]/,+9 s/address *= .*/address = \"$JSONRPC_WS_ADDRESS\"/" "$APP_CONFIG_FILE" sed -i'' -e '/\[api\]/,+3 s/enable *= .*/enable = true/' "$APP_CONFIG_FILE" sed -i'' -e "/\[api\]/,+9 s/address *= .*/address = \"tcp:\/\/$API_ADDRESS\"/" "$APP_CONFIG_FILE"