stack-orchestrator/container-build/cerc-fixturenet-eth-geth/genesis/el/build_el.sh
Thomas E Lackey 01fd7e251a
Remove fixed IPs and separate network for fixturenet. (#30)
* Remove fixed IPs and separate network for fixturenet.

* Remove static port mapping.

* Add helper script for checking your fxiturenet status

* Sleep 1 second

* Fix spacing

* Fix for latest genesis generator.

* run as archive node
2022-10-31 12:43:49 -05:00

16 lines
577 B
Bash
Executable File

#!/usr/bin/env bash
set -e
# See: https://github.com/skylenet/ethereum-genesis-generator/blob/master/entrypoint.sh
rm -rf ../build/el
mkdir -p ../build/el
tmp_dir=$(mktemp -d -t ci-XXXXXXXXXX)
envsubst < el-config.yaml > $tmp_dir/genesis-config.yaml
ttd=`cat $tmp_dir/genesis-config.yaml | grep terminal_total_difficulty | awk '{ print $2 }'`
python3 /apps/el-gen/genesis_geth.py $tmp_dir/genesis-config.yaml | jq ".config.terminalTotalDifficulty=$ttd" > ../build/el/geth.json
python3 ../accounts/mnemonic_to_csv.py $tmp_dir/genesis-config.yaml > ../build/el/accounts.csv