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
9f1529c8
Unverified
Commit
9f1529c8
authored
May 04, 2021
by
Mark Tyneway
Committed by
GitHub
May 04, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
l2geth: more flexible start script (#743)
* l2geth: update start script * chore: add changeset
parent
56f73971
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
14 deletions
+23
-14
nice-walls-relate.md
.changeset/nice-walls-relate.md
+5
-0
start.sh
l2geth/scripts/start.sh
+18
-14
No files found.
.changeset/nice-walls-relate.md
0 → 100644
View file @
9f1529c8
---
'
@eth-optimism/l2geth'
:
patch
---
Update the start script to be more configurable
l2geth/scripts/start.sh
View file @
9f1529c8
...
@@ -5,7 +5,6 @@ REPO=$DIR/..
...
@@ -5,7 +5,6 @@ REPO=$DIR/..
IS_VERIFIER
=
IS_VERIFIER
=
DATADIR
=
$HOME
/.ethereum
DATADIR
=
$HOME
/.ethereum
ETH1_CHAIN_ID
=
1
TARGET_GAS_LIMIT
=
9000000
TARGET_GAS_LIMIT
=
9000000
CHAIN_ID
=
10
CHAIN_ID
=
10
ETH1_CTC_DEPLOYMENT_HEIGHT
=
12207792
ETH1_CTC_DEPLOYMENT_HEIGHT
=
12207792
...
@@ -31,7 +30,6 @@ CLI Arguments:
...
@@ -31,7 +30,6 @@ CLI Arguments:
--eth1.chainid - eth1 chain id
--eth1.chainid - eth1 chain id
--eth1.ctcdeploymentheight - eth1 ctc deploy height
--eth1.ctcdeploymentheight - eth1 ctc deploy height
--eth1.l1crossdomainmessengeraddress - eth1 l1 xdomain messenger address
--eth1.l1crossdomainmessengeraddress - eth1 l1 xdomain messenger address
--eth1.ctcdeploymentheight - eth1 ctc deployment height
--rollup.statedumppath - http path to the initial state dump
--rollup.statedumppath - http path to the initial state dump
--rollup.clienthttp - rollup client http
--rollup.clienthttp - rollup client http
--rollup.pollinterval - polling interval for the rollup client
--rollup.pollinterval - polling interval for the rollup client
...
@@ -86,36 +84,36 @@ while (( "$#" )); do
...
@@ -86,36 +84,36 @@ while (( "$#" )); do
exit
1
exit
1
fi
fi
;;
;;
--eth1
.c
hainid
)
--eth1
.c
tcdeploymentheight
)
if
[
-n
"
$2
"
]
&&
[
${
2
:0:1
}
!=
"-"
]
;
then
if
[
-n
"
$2
"
]
&&
[
${
2
:0:1
}
!=
"-"
]
;
then
ETH1_C
HAIN_ID
=
"
$2
"
ETH1_C
TC_DEPLOYMENT_HEIGHT
=
"
$2
"
shift
2
shift
2
else
else
echo
"Error: Argument for
$1
is missing"
>
&2
echo
"Error: Argument for
$1
is missing"
>
&2
exit
1
exit
1
fi
fi
;;
;;
--eth1
.
ctcdeploymentheight
)
--eth1
.
l1gatewayaddress
)
if
[
-n
"
$2
"
]
&&
[
${
2
:0:1
}
!=
"-"
]
;
then
if
[
-n
"
$2
"
]
&&
[
${
2
:0:1
}
!=
"-"
]
;
then
ETH1_
CTC_DEPLOYMENT_HEIGHT
=
"
$2
"
ETH1_
L1_GATEWAY_ADDRESS
=
"
$2
"
shift
2
shift
2
else
else
echo
"Error: Argument for
$1
is missing"
>
&2
echo
"Error: Argument for
$1
is missing"
>
&2
exit
1
exit
1
fi
fi
;;
;;
--eth1
.l1
gateway
address
)
--eth1
.l1
crossdomainmessenger
address
)
if
[
-n
"
$2
"
]
&&
[
${
2
:0:1
}
!=
"-"
]
;
then
if
[
-n
"
$2
"
]
&&
[
${
2
:0:1
}
!=
"-"
]
;
then
ETH1_L1_
GATEWAY
_ADDRESS
=
"
$2
"
ETH1_L1_
CROSS_DOMAIN_MESSENGER
_ADDRESS
=
"
$2
"
shift
2
shift
2
else
else
echo
"Error: Argument for
$1
is missing"
>
&2
echo
"Error: Argument for
$1
is missing"
>
&2
exit
1
exit
1
fi
fi
;;
;;
--eth1
.l1
crossdomainmessenger
address
)
--eth1
.l1
ethgateway
address
)
if
[
-n
"
$2
"
]
&&
[
${
2
:0:1
}
!=
"-"
]
;
then
if
[
-n
"
$2
"
]
&&
[
${
2
:0:1
}
!=
"-"
]
;
then
ETH1_L1_
CROSS_DOMAIN_MESSENGER
_ADDRESS
=
"
$2
"
ETH1_L1_
ETH_GATEWAY
_ADDRESS
=
"
$2
"
shift
2
shift
2
else
else
echo
"Error: Argument for
$1
is missing"
>
&2
echo
"Error: Argument for
$1
is missing"
>
&2
...
@@ -167,6 +165,15 @@ while (( "$#" )); do
...
@@ -167,6 +165,15 @@ while (( "$#" )); do
exit
1
exit
1
fi
fi
;;
;;
--rollup
.addressmanagerowneraddress
)
if
[
-n
"
$2
"
]
&&
[
${
2
:0:1
}
!=
"-"
]
;
then
ADDRESS_MANAGER_OWNER_ADDRESS
=
"
$2
"
shift
2
else
echo
"Error: Argument for
$1
is missing"
>
&2
exit
1
fi
;;
--cache
)
--cache
)
if
[
-n
"
$2
"
]
&&
[
${
2
:0:1
}
!=
"-"
]
;
then
if
[
-n
"
$2
"
]
&&
[
${
2
:0:1
}
!=
"-"
]
;
then
CACHE
=
"
$2
"
CACHE
=
"
$2
"
...
@@ -195,14 +202,11 @@ done
...
@@ -195,14 +202,11 @@ done
cmd
=
"
$REPO
/build/bin/geth"
cmd
=
"
$REPO
/build/bin/geth"
cmd
=
"
$cmd
--eth1.syncservice"
cmd
=
"
$cmd
--eth1.syncservice"
cmd
=
"
$cmd
--datadir
$DATADIR
"
cmd
=
"
$cmd
--datadir
$DATADIR
"
cmd
=
"
$cmd
--eth1.chainid
$ETH1_CHAIN_ID
"
cmd
=
"
$cmd
--eth1.l1crossdomainmessengeraddress
$ETH1_L1_CROSS_DOMAIN_MESSENGER_ADDRESS
"
cmd
=
"
$cmd
--eth1.l1crossdomainmessengeraddress
$ETH1_L1_CROSS_DOMAIN_MESSENGER_ADDRESS
"
cmd
=
"
$cmd
--rollup.addressmanagerowneraddress
$ADDRESS_MANAGER_OWNER_ADDRESS
"
cmd
=
"
$cmd
--rollup.addressmanagerowneraddress
$ADDRESS_MANAGER_OWNER_ADDRESS
"
cmd
=
"
$cmd
--rollup.statedumppath
$ROLLUP_STATE_DUMP_PATH
"
cmd
=
"
$cmd
--rollup.statedumppath
$ROLLUP_STATE_DUMP_PATH
"
cmd
=
"
$cmd
--eth1.ctcdeploymentheight
$ETH1_CTC_DEPLOYMENT_HEIGHT
"
cmd
=
"
$cmd
--eth1.ctcdeploymentheight
$ETH1_CTC_DEPLOYMENT_HEIGHT
"
if
[[
!
-z
$ETH1_L1_GATEWAY_ADDRESS
]]
;
then
cmd
=
"
$cmd
--eth1.l1ethgatewayaddress
$ETH1_L1_GATEWAY_ADDRESS
"
cmd
=
"
$cmd
--eth1.l1ethgatewayaddress
$ETH1_L1_GATEWAY_ADDRESS
"
fi
cmd
=
"
$cmd
--rollup.clienthttp
$ROLLUP_CLIENT_HTTP
"
cmd
=
"
$cmd
--rollup.clienthttp
$ROLLUP_CLIENT_HTTP
"
cmd
=
"
$cmd
--rollup.pollinterval
$ROLLUP_POLL_INTERVAL
"
cmd
=
"
$cmd
--rollup.pollinterval
$ROLLUP_POLL_INTERVAL
"
cmd
=
"
$cmd
--rollup.timestamprefresh
$ROLLUP_TIMESTAMP_REFRESH
"
cmd
=
"
$cmd
--rollup.timestamprefresh
$ROLLUP_TIMESTAMP_REFRESH
"
...
...
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