Compare commits

..

12 Commits

Author SHA1 Message Date
4ee4959fd6 missing repo 2024-07-19 15:51:42 +08:00
9540724d82 Add fixturenet-eth-spam stack 2024-07-19 15:51:42 +08:00
5ad7ebb016 [dev] use patched lighthouse ref 2024-07-19 13:44:12 +08:00
ebf19337eb use patched lcli to create validators with eth1 withdrawal creds 2024-07-18 18:22:48 +08:00
7bd725c69f CL spec: speed up validator withdrawals 2024-07-18 18:22:12 +08:00
40a5fa23cd debug level is used when running chain, not creating testnet 2024-07-18 18:01:56 +08:00
88cdd48588 this is configured at genesis 2024-07-18 18:01:56 +08:00
67153e0143 move statediff.env to plugeth dir 2024-07-18 18:01:56 +08:00
4c886dbdd1 Add geth API flags for statediff (#16)
All checks were successful
Test Ethereum Fixturenet Stack / Run Ethereum Fixturenet stack test (push) Successful in 18m15s
Test Ethereum Plugeth Fixturenet Stack / Test fixturenet-plugeth stack (push) Successful in 27m20s
Patch for Plugeth stack. `statediff` RPC API is currently only used by ipld-eth-server.

Reviewed-on: #16
2024-07-13 11:08:17 +00:00
0d63b95f7d Add Plugeth stack (#14)
All checks were successful
Test Ethereum Fixturenet Stack / Run Ethereum Fixturenet stack test (push) Successful in 17m31s
Test Ethereum Plugeth Fixturenet Stack / Test fixturenet-plugeth stack (push) Successful in 26m34s
Adds definitions for Plugeth stack and `ipld-eth-db`.

Uses cerc-io/stack-orchestrator#851 in tests.

Reviewed-on: #14
2024-07-10 01:28:09 +00:00
f20f91422b Use state.scheme=hash (#15)
All checks were successful
Test Ethereum Fixturenet Stack / Run Ethereum Fixturenet stack test (push) Successful in 18m34s
As of [Geth 1.14](https://github.com/ethereum/go-ethereum/releases/tag/v1.14.0), state storage defaults to `--state.scheme=path` mode for new DBs. This doesn't yet support archiving, so for now we need to explicitly use the old `hash` scheme.

Reviewed-on: #15
2024-07-10 01:27:58 +00:00
e1faeb9eca Trigger container publish job
All checks were successful
Publish Ethereum Fixturenet Stack Container Images / Publish Ethereum Fixturenet Stack Container Images (push) Successful in 20m45s
Test Ethereum Fixturenet Stack / Run Ethereum Fixturenet stack test (push) Successful in 19m17s
2024-06-20 15:50:32 +00:00
10 changed files with 23 additions and 37 deletions

View File

@ -28,33 +28,8 @@ jobs:
- name: "Print Python version"
run: python3 --version
- name: "Install stack orchestrator"
# FIXME: merge SO fixes and revert
# run: ./scripts/install-so.sh
uses: actions/checkout@v3
with:
repository: cerc-io/stack-orchestrator
ref: roysc/fix-various
path: .tools/stack-orchestrator
- name: "Install stack orchestrator"
run: pip3 install .tools/stack-orchestrator
run: ./scripts/install-so.sh
- name: "Run stack tests"
run: |
PATH=$PATH:~/bin
./tests/fixturenet-plugeth-stack/run-test.sh
- name: Notify Vulcanize Slack on CI failure
if: ${{ always() && github.ref_name == 'main' }}
uses: ravsamhq/notify-slack-action@v2
with:
status: ${{ job.status }}
notify_when: 'failure'
env:
SLACK_WEBHOOK_URL: ${{ secrets.VULCANIZE_SLACK_CI_ALERTS }}
- name: Notify DeepStack Slack on CI failure
if: ${{ always() && github.ref_name == 'main' }}
uses: ravsamhq/notify-slack-action@v2
with:
status: ${{ job.status }}
notify_when: 'failure'
env:
SLACK_WEBHOOK_URL: ${{ secrets.DEEPSTACK_SLACK_CI_ALERTS }}

View File

@ -1 +1,2 @@
# Change this file to trigger the job publish-fixturenet-eth-images.yml
Trigger

View File

@ -27,7 +27,7 @@ services:
CERC_ALLOW_UNPROTECTED_TXS: ${CERC_ALLOW_UNPROTECTED_TXS:-false}
env_file:
- ../config/fixturenet-eth/fixturenet-eth.env
- ../config/fixturenet-eth/statediff.env
- ../config/fixturenet-plugeth/statediff.env
image: cerc/fixturenet-plugeth-plugeth:local
volumes:
- fixturenet_plugeth_geth_1_data:/root/ethdata

View File

@ -14,5 +14,5 @@ ENR_URL="http://fixturenet-eth-bootnode-lighthouse:3000/bootnode/enr.dat"
CERC_GETH_VMODULE="rpc/*=5"
CERC_GETH_VERBOSITY=${CERC_GETH_VERBOSITY:-3}
# Used by Lighthouse
SECONDS_PER_ETH1_BLOCK=${SECONDS_PER_ETH1_BLOCK:-3}
# --debug-level
DEBUG_LEVEL=${LIGHTHOUSE_DEBUG_LEVEL:-info}

View File

@ -7,3 +7,6 @@ CERC_STATEDIFF_DB_PASSWORD="password"
CERC_STATEDIFF_DB_GOOSE_MIN_VER=${CERC_STATEDIFF_DB_GOOSE_MIN_VER:-21}
CERC_STATEDIFF_DB_LOG_STATEMENTS="${CERC_STATEDIFF_DB_LOG_STATEMENTS:-false}"
CERC_STATEDIFF_WORKERS=2
CERC_GETH_HTTP_APIS="eth,web3,net,admin,personal,debug,statediff"
CERC_GETH_WS_APIS="eth,web3,net,admin,personal,debug,statediff"

View File

@ -44,6 +44,11 @@ lcli \
--interop-genesis-state \
--force
# Patch the spec with settings not supported by lcli
sed -i "/^SHARD_COMMITTEE_PERIOD:/s/:.*/: $SHARD_COMMITTEE_PERIOD/" $TESTNET_DIR/config.yaml
sed -i "/^MIN_VALIDATOR_WITHDRAWABILITY_DELAY:/s/:.*/: $MIN_VALIDATOR_WITHDRAWABILITY_DELAY/" $TESTNET_DIR/config.yaml
sed -i "/^MAX_SEED_LOOKAHEAD:/s/:.*/: $MAX_SEED_LOOKAHEAD/" $TESTNET_DIR/config.yaml
echo Specification and genesis.ssz generated at $TESTNET_DIR.
echo "Generating $VALIDATOR_COUNT validators concurrently... (this may take a while)"

View File

@ -38,6 +38,13 @@ SECONDS_PER_SLOT=${SECONDS_PER_SLOT:-3}
# Seconds per Eth1 block
SECONDS_PER_ETH1_BLOCK=${SECONDS_PER_ETH1_BLOCK:-1}
# Min epochs between validator activation and exit
SHARD_COMMITTEE_PERIOD=2
# Min epochs between validator exit and withdrawal
MIN_VALIDATOR_WITHDRAWABILITY_DELAY=1
# Delay for validator activation/exit
MAX_SEED_LOOKAHEAD=1
# Command line arguments for validator client
VC_ARGS=${VC_ARGS:-""}
@ -54,5 +61,4 @@ ETH1_DEPOSIT_CONTRACT_ADDRESS=${ETH1_DEPOSIT_CONTRACT_ADDRESS:-`cat $ETH1_CONFIG
ETH1_DEPOSIT_CONTRACT_BLOCK=${ETH1_DEPOSIT_CONTRACT_BLOCK:-0x0}
SUGGESTED_FEE_RECIPIENT=`cat ../build/el/accounts.csv | head -1 | cut -d',' -f2`
# --debug-level
DEBUG_LEVEL=${LIGHTHOUSE_DEBUG_LEVEL:-info}
VALIDATOR_MNEMONIC="viable ketchup woman library opinion copy rhythm attend rose knock penalty practice photo bundle budget dentist enter round bind holiday useful arch danger lobster"

View File

@ -1,4 +0,0 @@
#!/usr/bin/env bash
# Build cerc/ipld-eth-db
source ${CERC_CONTAINER_BASE_DIR}/build-base.sh
docker build -t cerc/ipld-eth-db:local ${build_command_args} ${CERC_REPO_BASE_DIR}/ipld-eth-db

View File

@ -2,7 +2,7 @@ version: "1.1"
name: fixturenet-eth
description: "Ethereum Fixturenet"
repos:
- git.vdb.to/cerc-io/lighthouse
- git.vdb.to/cerc-io/lighthouse@testnet-genesis-eth1-withdrawal-creds
containers:
- cerc/lighthouse
- cerc/lighthouse-cli

View File

@ -4,7 +4,7 @@ description: "Plugeth Ethereum Indexing Fixturenet"
repos:
- git.vdb.to/cerc-io/plugeth@statediff
- git.vdb.to/cerc-io/plugeth-statediff
- git.vdb.to/cerc-io/lighthouse
- git.vdb.to/cerc-io/lighthouse@testnet-genesis-eth1-withdrawal-creds
- git.vdb.to/cerc-io/ipld-eth-db
containers:
- cerc/plugeth-statediff