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
d3cf3f42
Unverified
Commit
d3cf3f42
authored
Oct 20, 2023
by
Barnabas Busa
Committed by
GitHub
Oct 20, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: remove path based storage when builder is used (#327)
parent
4fa49375
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
geth_launcher.star
src/el/geth/geth_launcher.star
+12
-2
No files found.
src/el/geth/geth_launcher.star
View file @
d3cf3f42
...
@@ -155,6 +155,11 @@ def get_config(
...
@@ -155,6 +155,11 @@ def get_config(
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",
)
)
elif "--builder" in extra_params:
init_datadir_cmd_str = "geth init --datadir={0} {1}".format(
EXECUTION_DATA_DIRPATH_ON_CLIENT_CONTAINER,
constants.GENESIS_CONFIG_MOUNT_PATH_ON_CONTAINER + "/genesis.json",
)
else:
else:
init_datadir_cmd_str = "geth init --state.scheme=path --datadir={0} {1}".format(
init_datadir_cmd_str = "geth init --state.scheme=path --datadir={0} {1}".format(
EXECUTION_DATA_DIRPATH_ON_CLIENT_CONTAINER,
EXECUTION_DATA_DIRPATH_ON_CLIENT_CONTAINER,
...
@@ -163,8 +168,13 @@ def get_config(
...
@@ -163,8 +168,13 @@ def get_config(
cmd = [
cmd = [
"geth",
"geth",
# Disable path based storage scheme for electra fork
# Disable path based storage scheme for electra fork or when builder image is used
"{0}".format("--state.scheme=path" if electra_fork_epoch == None else ""),
# TODO: REMOVE Once geth default db is path based, and builder rebased
"{0}".format(
"--state.scheme=path"
if electra_fork_epoch != None or "--builder" not in extra_params
else ""
),
# Override prague fork timestamp for electra fork
# Override prague fork timestamp for electra fork
"{0}".format(
"{0}".format(
"--override.prague=" + final_genesis_timestamp
"--override.prague=" + final_genesis_timestamp
...
...
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