mirror of
https://gitlab.com/pulsechaincom/lighthouse-pulse.git
synced 2024-12-25 04:57:17 +00:00
150931950d
## Issue Addressed
Resolves https://github.com/sigp/lighthouse/issues/2763
## Proposed Changes
- Add a workflow which tests that local testnet starts successfully
- Added `set` option into the scripts in order to fail fast so that we can notice errors during starting local testnet.
- Fix errors on MacOS
- The redirect `&>>` is supported since bash v4 but the version bundled in macOS(11.6.1) is v3. a54f119c9b
19 lines
233 B
Bash
Executable File
19 lines
233 B
Bash
Executable File
#!/bin/bash
|
|
|
|
#
|
|
# Resets the beacon state genesis time to now.
|
|
#
|
|
|
|
set -Eeuo pipefail
|
|
|
|
source ./vars.env
|
|
|
|
NOW=$(date +%s)
|
|
|
|
lcli \
|
|
change-genesis-time \
|
|
$TESTNET_DIR/genesis.ssz \
|
|
$(date +%s)
|
|
|
|
echo "Reset genesis time to now ($NOW)"
|