Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ethereum-package
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
vicotor
ethereum-package
Commits
b7592eca
Unverified
Commit
b7592eca
authored
Apr 15, 2024
by
Barnabas Busa
Committed by
GitHub
Apr 15, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: disable full sync if gcmode is archive (#563)
parent
ea4cd083
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
geth_launcher.star
src/el/geth/geth_launcher.star
+7
-5
No files found.
src/el/geth/geth_launcher.star
View file @
b7592eca
...
@@ -197,6 +197,10 @@ def get_config(
...
@@ -197,6 +197,10 @@ def get_config(
tolerations,
tolerations,
node_selectors,
node_selectors,
):
):
if "--gcmode=archive" in extra_params or "--gcmode archive" in extra_params:
gcmode_archive = True
else:
gcmode_archive = False
# TODO: Remove this once electra fork has path based storage scheme implemented
# TODO: Remove this once electra fork has path based storage scheme implemented
if (
if (
constants.NETWORK_NAME.verkle in network
constants.NETWORK_NAME.verkle in network
...
@@ -217,9 +221,7 @@ def get_config(
...
@@ -217,9 +221,7 @@ def get_config(
elif constants.NETWORK_NAME.shadowfork in network:
elif constants.NETWORK_NAME.shadowfork in network:
init_datadir_cmd_str = "echo shadowfork"
init_datadir_cmd_str = "echo shadowfork"
elif (
elif gcmode_archive: # Disable path based storage scheme archive mode
"--gcmode archive" in extra_params
): # Disable path based storage scheme archive mode
init_datadir_cmd_str = "geth init --state.scheme=hash --datadir={0} {1}".format(
init_datadir_cmd_str = "geth init --state.scheme=hash --datadir={0} {1}".format(
EXECUTION_DATA_DIRPATH_ON_CLIENT_CONTAINER,
EXECUTION_DATA_DIRPATH_ON_CLIENT_CONTAINER,
constants.GENESIS_CONFIG_MOUNT_PATH_ON_CONTAINER + "/genesis.json",
constants.GENESIS_CONFIG_MOUNT_PATH_ON_CONTAINER + "/genesis.json",
...
@@ -236,7 +238,7 @@ def get_config(
...
@@ -236,7 +238,7 @@ def get_config(
# TODO: REMOVE Once geth default db is path based, and builder rebased
# TODO: REMOVE Once geth default db is path based, and builder rebased
"{0}".format(
"{0}".format(
"--state.scheme=path"
"--state.scheme=path"
if "verkle" not in network and
"--gcmode archive" not in extra_params
if "verkle" not in network and
not gcmode_archive
else ""
else ""
),
),
# Override prague fork timestamp for electra fork
# Override prague fork timestamp for electra fork
...
@@ -275,7 +277,7 @@ def get_config(
...
@@ -275,7 +277,7 @@ def get_config(
"--authrpc.addr=0.0.0.0",
"--authrpc.addr=0.0.0.0",
"--authrpc.vhosts=*",
"--authrpc.vhosts=*",
"--authrpc.jwtsecret=" + constants.JWT_MOUNT_PATH_ON_CONTAINER,
"--authrpc.jwtsecret=" + constants.JWT_MOUNT_PATH_ON_CONTAINER,
"--syncmode=full",
"--syncmode=full"
if not gcmode_archive else "--gcmode=archive"
,
"--rpc.allow-unprotected-txs",
"--rpc.allow-unprotected-txs",
"--metrics",
"--metrics",
"--metrics.addr=0.0.0.0",
"--metrics.addr=0.0.0.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