init linea sepolia

This commit is contained in:
Sebastian
2024-10-03 09:56:19 +02:00
parent 43bd3903d6
commit 9ac56cc9a7
5 changed files with 933 additions and 2 deletions

View File

@@ -0,0 +1,16 @@
#!/bin/sh
# exit script on any error
set -e
ERIGON_HOME=/root/.local/share/erigon
if [ ! -f "${ERIGON_HOME}/bootstrapped" ];
then
echo "write the custom genesis block"
mkdir -p ${ERIGON_HOME:-/root/.local/share/erigon}
erigon init --datadir ${ERIGON_HOME:-/root/.local/share/erigon} /configs/sepolia/shared/genesis.json
touch "${ERIGON_HOME}/bootstrapped"
fi
exec erigon $@