mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-08 01:05:47 +00:00
Update local testnet scripts for the fulu fork (#8489)
* Remove `fulu-devnet-3` testing on CI * Delete `scripts/local_testnet/network_params_das.yaml` and consolidate it into the main `network_params.yaml` file we use on CI * Delete enclave before building image, so it doesn't cause slow image building. Co-Authored-By: Jimmy Chen <jchen.tc@gmail.com>
This commit is contained in:
2
.github/workflows/local-testnet.yml
vendored
2
.github/workflows/local-testnet.yml
vendored
@@ -179,7 +179,7 @@ jobs:
|
|||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
network: [sepolia, devnet]
|
network: [sepolia]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v5
|
||||||
|
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ cd ./scripts/local_testnet
|
|||||||
```
|
```
|
||||||
|
|
||||||
It will build a Lighthouse docker image from the root of the directory and will take an approximately 12 minutes to complete. Once built, the testing will be started automatically. You will see a list of services running and "Started!" at the end.
|
It will build a Lighthouse docker image from the root of the directory and will take an approximately 12 minutes to complete. Once built, the testing will be started automatically. You will see a list of services running and "Started!" at the end.
|
||||||
You can also select your own Lighthouse docker image to use by specifying it in `network_params.yml` under the `cl_image` key.
|
You can also select your own Lighthouse docker image to use by specifying it in `network_params.yaml` under the `cl_image` key.
|
||||||
Full configuration reference for Kurtosis is specified [here](https://github.com/ethpandaops/ethereum-package?tab=readme-ov-file#configuration).
|
Full configuration reference for Kurtosis is specified [here](https://github.com/ethpandaops/ethereum-package?tab=readme-ov-file#configuration).
|
||||||
|
|
||||||
To view all running services:
|
To view all running services:
|
||||||
|
|||||||
@@ -1,19 +1,37 @@
|
|||||||
# Full configuration reference [here](https://github.com/ethpandaops/ethereum-package?tab=readme-ov-file#configuration).
|
# Full configuration reference [here](https://github.com/ethpandaops/ethereum-package?tab=readme-ov-file#configuration).
|
||||||
participants:
|
participants:
|
||||||
- el_type: geth
|
- cl_type: lighthouse
|
||||||
el_image: ethereum/client-go:latest
|
|
||||||
cl_type: lighthouse
|
|
||||||
cl_image: lighthouse:local
|
cl_image: lighthouse:local
|
||||||
|
el_type: geth
|
||||||
|
el_image: ethereum/client-go:latest
|
||||||
|
supernode: true
|
||||||
cl_extra_params:
|
cl_extra_params:
|
||||||
- --target-peers=3
|
- --target-peers=3
|
||||||
count: 4
|
count: 2
|
||||||
|
- cl_type: lighthouse
|
||||||
|
cl_image: lighthouse:local
|
||||||
|
el_type: geth
|
||||||
|
el_image: ethereum/client-go:latest
|
||||||
|
supernode: false
|
||||||
|
cl_extra_params:
|
||||||
|
- --target-peers=3
|
||||||
|
count: 2
|
||||||
network_params:
|
network_params:
|
||||||
electra_fork_epoch: 0
|
fulu_fork_epoch: 0
|
||||||
seconds_per_slot: 3
|
seconds_per_slot: 6
|
||||||
global_log_level: debug
|
|
||||||
snooper_enabled: false
|
snooper_enabled: false
|
||||||
|
global_log_level: debug
|
||||||
additional_services:
|
additional_services:
|
||||||
- dora
|
- dora
|
||||||
- spamoor
|
- spamoor
|
||||||
- prometheus_grafana
|
- prometheus_grafana
|
||||||
- tempo
|
- tempo
|
||||||
|
spamoor_params:
|
||||||
|
image: ethpandaops/spamoor:master
|
||||||
|
spammers:
|
||||||
|
- scenario: eoatx
|
||||||
|
config:
|
||||||
|
throughput: 200
|
||||||
|
- scenario: blobs
|
||||||
|
config:
|
||||||
|
throughput: 20
|
||||||
@@ -1,41 +0,0 @@
|
|||||||
participants:
|
|
||||||
- cl_type: lighthouse
|
|
||||||
cl_image: lighthouse:local
|
|
||||||
el_type: geth
|
|
||||||
el_image: ethpandaops/geth:master
|
|
||||||
supernode: true
|
|
||||||
cl_extra_params:
|
|
||||||
# Note: useful for testing range sync (only produce block if the node is in sync to prevent forking)
|
|
||||||
- --sync-tolerance-epochs=0
|
|
||||||
- --target-peers=3
|
|
||||||
count: 2
|
|
||||||
- cl_type: lighthouse
|
|
||||||
cl_image: lighthouse:local
|
|
||||||
el_type: geth
|
|
||||||
el_image: ethpandaops/geth:master
|
|
||||||
supernode: false
|
|
||||||
cl_extra_params:
|
|
||||||
# Note: useful for testing range sync (only produce block if the node is in sync to prevent forking)
|
|
||||||
- --sync-tolerance-epochs=0
|
|
||||||
- --target-peers=3
|
|
||||||
count: 2
|
|
||||||
network_params:
|
|
||||||
electra_fork_epoch: 0
|
|
||||||
fulu_fork_epoch: 1
|
|
||||||
seconds_per_slot: 6
|
|
||||||
snooper_enabled: false
|
|
||||||
global_log_level: debug
|
|
||||||
additional_services:
|
|
||||||
- dora
|
|
||||||
- spamoor
|
|
||||||
- prometheus_grafana
|
|
||||||
- tempo
|
|
||||||
spamoor_params:
|
|
||||||
image: ethpandaops/spamoor:master
|
|
||||||
spammers:
|
|
||||||
- scenario: eoatx
|
|
||||||
config:
|
|
||||||
throughput: 200
|
|
||||||
- scenario: blobs
|
|
||||||
config:
|
|
||||||
throughput: 20
|
|
||||||
@@ -78,6 +78,11 @@ if [ "$RUN_ASSERTOOR_TESTS" = true ]; then
|
|||||||
echo "Assertoor has been added to $NETWORK_PARAMS_FILE."
|
echo "Assertoor has been added to $NETWORK_PARAMS_FILE."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "$KEEP_ENCLAVE" = false ]; then
|
||||||
|
# Stop local testnet
|
||||||
|
kurtosis enclave rm -f $ENCLAVE_NAME 2>/dev/null || true
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "$BUILD_IMAGE" = true ]; then
|
if [ "$BUILD_IMAGE" = true ]; then
|
||||||
echo "Building Lighthouse Docker image."
|
echo "Building Lighthouse Docker image."
|
||||||
ROOT_DIR="$SCRIPT_DIR/../.."
|
ROOT_DIR="$SCRIPT_DIR/../.."
|
||||||
@@ -86,11 +91,6 @@ else
|
|||||||
echo "Not rebuilding Lighthouse Docker image."
|
echo "Not rebuilding Lighthouse Docker image."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$KEEP_ENCLAVE" = false ]; then
|
|
||||||
# Stop local testnet
|
|
||||||
kurtosis enclave rm -f $ENCLAVE_NAME 2>/dev/null || true
|
|
||||||
fi
|
|
||||||
|
|
||||||
kurtosis run --enclave $ENCLAVE_NAME github.com/ethpandaops/ethereum-package@$ETHEREUM_PKG_VERSION --args-file $NETWORK_PARAMS_FILE
|
kurtosis run --enclave $ENCLAVE_NAME github.com/ethpandaops/ethereum-package@$ETHEREUM_PKG_VERSION --args-file $NETWORK_PARAMS_FILE
|
||||||
|
|
||||||
echo "Started!"
|
echo "Started!"
|
||||||
|
|||||||
@@ -1,24 +0,0 @@
|
|||||||
# Kurtosis config file to checkpoint sync to a running devnet supported by ethPandaOps and `ethereum-package`.
|
|
||||||
participants:
|
|
||||||
- cl_type: lighthouse
|
|
||||||
cl_image: lighthouse:local
|
|
||||||
el_type: geth
|
|
||||||
el_image: ethpandaops/geth:master
|
|
||||||
cl_extra_params:
|
|
||||||
- --disable-backfill-rate-limiting
|
|
||||||
supernode: true
|
|
||||||
- cl_type: lighthouse
|
|
||||||
cl_image: lighthouse:local
|
|
||||||
el_type: geth
|
|
||||||
el_image: ethpandaops/geth:master
|
|
||||||
cl_extra_params:
|
|
||||||
- --disable-backfill-rate-limiting
|
|
||||||
supernode: false
|
|
||||||
|
|
||||||
checkpoint_sync_enabled: true
|
|
||||||
checkpoint_sync_url: "https://checkpoint-sync.fusaka-devnet-3.ethpandaops.io"
|
|
||||||
|
|
||||||
global_log_level: debug
|
|
||||||
|
|
||||||
network_params:
|
|
||||||
network: fusaka-devnet-3
|
|
||||||
Reference in New Issue
Block a user