fixturenet-eth-stacks/container-build/cerc-fixturenet-eth-lighthouse/genesis/cl/reset_genesis_time.sh

21 lines
359 B
Bash
Raw Normal View History

2024-04-25 12:23:30 +00:00
#!/bin/bash
# See: https://github.com/sigp/lighthouse/blob/stable/scripts/local_testnet/reset_genesis_time.sh
#
# Resets the beacon state genesis time to now.
#
set -Eeuo pipefail
source ./vars.env
NOW=${1:-`date +%s`}
lcli \
change-genesis-time \
--testnet-dir $TESTNET_DIR \
$TESTNET_DIR/genesis.ssz \
$NOW
echo "Reset genesis time to ($NOW)"