-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Increase test coverage & Fix for goerli setup (#853)
* Fix nix setup * Generate fixtures for next sync period & adding tests accordingly * More cleanup * Fix ci * More tests * Remove install foundry * Fix&Refactoring for goerli main spec * Resolve comments * Resolve comments * For comment * Running beacon node with explicit node option * Bug fix for withdrawalCredentials * Use Box Type for storing prepared pubkeys * More refactoring * More cleanup * More cleanup * Fix benchmark fixture * Update benchmark * Update weights * Resolve comments * Ignore code path for coverage * Update cumulus * Speed up E2E * Fix ci adding feature release back for benchmark
- Loading branch information
Showing
34 changed files
with
1,771 additions
and
1,499 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,14 @@ | ||
#!/usr/bin/env sh | ||
#!/usr/bin/env bash | ||
|
||
echo "Update submodules" | ||
(cd .. && (git submodule update --init --recursive||true)) | ||
|
||
echo "Install husky hook" | ||
(cd .. && ./core/node_modules/.bin/husky install) | ||
|
||
echo "Installing sszgen" | ||
go install github.com/ferranbt/fastssz/sszgen@latest | ||
|
||
echo "Initialize foundry libraries" | ||
(cd packages/contracts && (forge install||true)) | ||
(cd packages/contracts && forge install) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,16 +3,23 @@ set -eu | |
|
||
source scripts/set-env.sh | ||
|
||
|
||
start_chains() | ||
{ | ||
npx lodestar beacon --dataDir="./ethereum-goerli" --network="goerli" --rest.namespace="*" --jwt-secret="./config/jwtsecret" --checkpointSyncUrl="https://sync-goerli.beaconcha.in" 2>&1 & | ||
geth --goerli --override.shanghai=0 --datadir="./ethereum-goerli" --authrpc.addr="127.0.0.1" --http.addr="0.0.0.0" --http.corsdomain '*' --http --http.api eth,net,engine,admin --authrpc.jwtsecret config/jwtsecret 2>&1 & | ||
echo "Starting execution node" | ||
geth --goerli --override.shanghai=0 --datadir="$ethereum_data_dir" --authrpc.addr="127.0.0.1" --http.addr="0.0.0.0" --http.corsdomain '*' --http --http.api eth,net,engine,admin --authrpc.jwtsecret config/jwtsecret > "$output_dir/geth.log" 2>&1 & | ||
echo "Waiting for geth API to be ready" | ||
sleep 3 | ||
echo "Starting beacon node" | ||
# explicit config max-old-space-size or will be oom | ||
node --max-old-space-size=4096 ../../node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@chainsafe/lodestar/lib/index.js beacon --dataDir="$ethereum_data_dir" --network=goerli --rest.namespace=* --jwt-secret=./config/jwtsecret --checkpointSyncUrl=https://sync-goerli.beaconcha.in > "$output_dir/lodestar.log" 2>&1 & | ||
echo "Waiting for beacon node to sync from checkpoint" | ||
sleep 10 | ||
echo "Ethereum started!" | ||
} | ||
|
||
if [ -z "${from_start_services:-}" ]; then | ||
echo "start goerli locally!" | ||
trap kill_all SIGINT SIGTERM EXIT | ||
start_chains | ||
check_tool && rm -rf "$ethereum_data_dir" && start_chains | ||
wait | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,3 +19,5 @@ rococo-local.json | |
|
||
# coverage reports | ||
cobertura.xml | ||
|
||
pallets/ethereum-beacon-client/tests/fixtures/*.mainnet.json |
Oops, something went wrong.