-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Clean up scripts * Update workflow paths * Run with bash:
- Loading branch information
Showing
25 changed files
with
115 additions
and
51 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
# Script's directory | ||
DIR="$(dirname "$0")" | ||
|
||
$DIR/run_nethermind.sh & | ||
BG_PID=$! | ||
|
||
# Set the trap to call cleanup | ||
cleanup() { | ||
echo "Stopping node process (PID: $BG_PID)..." | ||
kill $BG_PID 2>/dev/null || true | ||
# Also force clean the docker container, killing the attached process is not enough | ||
docker rm -f neth-vec-gen 2>/dev/null || true | ||
} | ||
trap cleanup EXIT | ||
|
||
$DIR/apply_test_vectors.sh | ||
|
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
# Script's directory | ||
DIR="$(dirname "$0")" | ||
|
||
$DIR/run_reth.sh & | ||
BG_PID=$! | ||
|
||
# Set the trap to call cleanup if an error occurs | ||
cleanup() { | ||
echo "Stopping node process (PID: $BG_PID)..." | ||
kill $BG_PID 2>/dev/null || true | ||
} | ||
trap cleanup EXIT | ||
|
||
$DIR/apply_test_vectors.sh | ||
|
||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
0
generate_chiado_genesis.py → scripts/generate_chiado_genesis.py
100644 → 100755
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
# Script to generate test vectors from Nethermind. It connects to the engine API of Nethermid to produce | ||
# blocks on the genesis block and stores them in $OUT_DIR. The jwtsecret is hardcoded, do not modify it. | ||
# To run just do: | ||
# | ||
# ``` | ||
# ./generate_test_vectors_nethermind.sh | ||
# ``` | ||
|
||
# Script's directory | ||
DIR="$(dirname "$0")" | ||
|
||
$DIR/run_nethermind.sh & | ||
BG_PID=$! | ||
|
||
# Set the trap to call cleanup | ||
cleanup() { | ||
echo "Stopping node process (PID: $BG_PID)..." | ||
kill $BG_PID 2>/dev/null || true | ||
# Also force clean the docker container, killing the attached process is not enough | ||
docker rm -f neth-vec-gen 2>/dev/null || true | ||
} | ||
trap cleanup EXIT | ||
|
||
$DIR/generate_test_vectors.sh | ||
|
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
# Script to generate test vectors from Reth. It connects to the engine API of Reth to produce | ||
# blocks on the genesis block and stores them in $OUT_DIR. The jwtsecret is hardcoded, do not modify it. | ||
# To run just do: | ||
# | ||
# ``` | ||
# ./generate_test_vectors_reth.sh | ||
# ``` | ||
|
||
# Script's directory | ||
DIR="$(dirname "$0")" | ||
|
||
$DIR/run_reth.sh & | ||
BG_PID=$! | ||
|
||
# Set the trap to call cleanup if an error occurs | ||
cleanup() { | ||
echo "Stopping node process (PID: $BG_PID)..." | ||
kill $BG_PID 2>/dev/null || true | ||
} | ||
trap cleanup EXIT | ||
|
||
$DIR/generate_test_vectors.sh | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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