Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
9b7dd4bf
Unverified
Commit
9b7dd4bf
authored
May 07, 2021
by
Mark Tyneway
Committed by
GitHub
May 07, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
l2geth: start script ws (#806)
* l2geth: add wsport parsing to start script * chore: add changeset
parent
33fcd841
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
1 deletion
+16
-1
sour-onions-burn.md
.changeset/sour-onions-burn.md
+5
-0
start.sh
l2geth/scripts/start.sh
+11
-1
No files found.
.changeset/sour-onions-burn.md
0 → 100644
View file @
9b7dd4bf
---
'
@eth-optimism/l2geth'
:
patch
---
Update
`scripts/start.sh`
to parse the websocket port and pass to geth at runtime
l2geth/scripts/start.sh
View file @
9b7dd4bf
...
@@ -17,6 +17,7 @@ ROLLUP_POLL_INTERVAL=15s
...
@@ -17,6 +17,7 @@ ROLLUP_POLL_INTERVAL=15s
ROLLUP_TIMESTAMP_REFRESH
=
3m
ROLLUP_TIMESTAMP_REFRESH
=
3m
CACHE
=
1024
CACHE
=
1024
RPC_PORT
=
8545
RPC_PORT
=
8545
WS_PORT
=
8546
VERBOSITY
=
3
VERBOSITY
=
3
USAGE
=
"
USAGE
=
"
...
@@ -84,6 +85,15 @@ while (( "$#" )); do
...
@@ -84,6 +85,15 @@ while (( "$#" )); do
exit
1
exit
1
fi
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
)
--eth1
.ctcdeploymentheight
)
if
[
-n
"
$2
"
]
&&
[
${
2
:0:1
}
!=
"-"
]
;
then
if
[
-n
"
$2
"
]
&&
[
${
2
:0:1
}
!=
"-"
]
;
then
ETH1_CTC_DEPLOYMENT_HEIGHT
=
"
$2
"
ETH1_CTC_DEPLOYMENT_HEIGHT
=
"
$2
"
...
@@ -222,7 +232,7 @@ cmd="$cmd --rpccorsdomain '*'"
...
@@ -222,7 +232,7 @@ cmd="$cmd --rpccorsdomain '*'"
cmd
=
"
$cmd
--rpcvhosts '*'"
cmd
=
"
$cmd
--rpcvhosts '*'"
cmd
=
"
$cmd
--ws"
cmd
=
"
$cmd
--ws"
cmd
=
"
$cmd
--wsaddr 0.0.0.0"
cmd
=
"
$cmd
--wsaddr 0.0.0.0"
cmd
=
"
$cmd
--wsport
8546
"
cmd
=
"
$cmd
--wsport
$WS_PORT
"
cmd
=
"
$cmd
--wsorigins '*'"
cmd
=
"
$cmd
--wsorigins '*'"
cmd
=
"
$cmd
--rpcapi 'eth,net,rollup,web3,debug'"
cmd
=
"
$cmd
--rpcapi 'eth,net,rollup,web3,debug'"
cmd
=
"
$cmd
--gasprice 0"
cmd
=
"
$cmd
--gasprice 0"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment