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
6fa04751
Unverified
Commit
6fa04751
authored
Mar 05, 2024
by
Barnabas Busa
Committed by
GitHub
Mar 05, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: make snapshot url configurable (#507)
parent
bc5e725e
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
3 deletions
+14
-3
holesky-shadowfork-verkle.yaml_norun
.github/tests/holesky-shadowfork-verkle.yaml_norun
+0
-1
README.md
README.md
+7
-0
network_params.yaml
network_params.yaml
+1
-0
input_parser.star
src/package_io/input_parser.star
+2
-0
participant_network.star
src/participant_network.star
+4
-2
No files found.
.github/tests/holesky-shadowfork-verkle.yaml_norun
View file @
6fa04751
...
...
@@ -10,7 +10,6 @@ participants:
network_params:
electra_fork_epoch: 1
network: holesky-shadowfork-verkle
genesis_delay: 300
additional_services:
- dora
snooper_enabled: true
...
...
README.md
View file @
6fa04751
...
...
@@ -422,6 +422,13 @@ network_params:
# Defaults to 256 epoch ~27 hours
shard_committee_period
:
256
# Network sync base url for syncing public networks from a custom snapshot (mostly useful for shadowforks)
# Defaults to "https://ethpandaops-ethereum-node-snapshots.ams3.digitaloceanspaces.com/
# If you have a local snapshot, you can set this to the local url:
# network_snapshot_url_base = "http://10.10.101.21:10000/snapshots/"
# The snapshots are taken with https://github.com/ethpandaops/snapshotter
network_sync_base_url
:
https://ethpandaops-ethereum-node-snapshots.ams3.digitaloceanspaces.com/
# Configuration place for transaction spammer - https:#github.com/MariusVanDerWijden/tx-fuzz
tx_spammer_params
:
# A list of optional extra params that will be passed to the TX Spammer container for modifying its behaviour
...
...
network_params.yaml
View file @
6fa04751
...
...
@@ -58,6 +58,7 @@ network_params:
network
:
kurtosis
min_validator_withdrawability_delay
:
256
shard_committee_period
:
256
network_sync_base_url
:
https://ethpandaops-ethereum-node-snapshots.ams3.digitaloceanspaces.com/
additional_services
:
-
tx_spammer
...
...
src/package_io/input_parser.star
View file @
6fa04751
...
...
@@ -245,6 +245,7 @@ def input_parser(plan, input_args):
"min_validator_withdrawability_delay"
],
shard_committee_period=result["network_params"]["shard_committee_period"],
network_sync_base_url=result["network_params"]["network_sync_base_url"],
),
mev_params=struct(
mev_relay_image=result["mev_params"]["mev_relay_image"],
...
...
@@ -614,6 +615,7 @@ def default_network_params():
"network": "kurtosis",
"min_validator_withdrawability_delay": 256,
"shard_committee_period": 256,
"network_sync_base_url": "https://ethpandaops-ethereum-node-snapshots.ams3.digitaloceanspaces.com/",
}
...
...
src/participant_network.star
View file @
6fa04751
...
...
@@ -110,7 +110,8 @@ def launch_participant_network(
] # overload the network id to match the network name
latest_block = plan.run_sh( # fetch the latest block
run="mkdir -p /shadowfork && \
curl -o /shadowfork/latest_block.json https://ethpandaops-ethereum-node-snapshots.ams3.digitaloceanspaces.com/"
curl -o /shadowfork/latest_block.json "
+ network_params.network_sync_base_url
+ base_network
+ "/geth/"
+ shadowfork_block
...
...
@@ -146,7 +147,8 @@ def launch_participant_network(
config=ServiceConfig(
image="alpine:3.19.1",
cmd=[
"apk add --no-cache curl tar zstd && curl -s -L https://ethpandaops-ethereum-node-snapshots.ams3.digitaloceanspaces.com/"
"apk add --no-cache curl tar zstd && curl -s -L "
+ network_params.network_sync_base_url
+ base_network
+ "/"
+ el_client_type
...
...
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