21 lines
359 B
Bash
Executable File
21 lines
359 B
Bash
Executable File
#!/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)"
|