Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/sour-onions-burn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@eth-optimism/l2geth': patch
---

Update `scripts/start.sh` to parse the websocket port and pass to geth at runtime
12 changes: 11 additions & 1 deletion l2geth/scripts/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ ROLLUP_POLL_INTERVAL=15s
ROLLUP_TIMESTAMP_REFRESH=3m
CACHE=1024
RPC_PORT=8545
WS_PORT=8546
VERBOSITY=3

USAGE="
Expand Down Expand Up @@ -84,6 +85,15 @@ while (( "$#" )); do
exit 1
fi
;;
--wsport)
if [ -n "$2" ] && [ ${2:0:1} != "-" ]; then
WS_PORT="$2"
shift 2
else
echo "Error: Argument for $1 is missing" >&2
exit 1
fi
;;
--eth1.ctcdeploymentheight)
if [ -n "$2" ] && [ ${2:0:1} != "-" ]; then
ETH1_CTC_DEPLOYMENT_HEIGHT="$2"
Expand Down Expand Up @@ -222,7 +232,7 @@ cmd="$cmd --rpccorsdomain '*'"
cmd="$cmd --rpcvhosts '*'"
cmd="$cmd --ws"
cmd="$cmd --wsaddr 0.0.0.0"
cmd="$cmd --wsport 8546"
cmd="$cmd --wsport $WS_PORT"
cmd="$cmd --wsorigins '*'"
cmd="$cmd --rpcapi 'eth,net,rollup,web3,debug'"
cmd="$cmd --gasprice 0"
Expand Down