mirror of
https://gitlab.com/pulsechaincom/lighthouse-pulse.git
synced 2024-12-25 04:57:17 +00:00
8bc82c573d
* Update local testnet scripts * Add logs when decrypting validators * Update comment * Update account manager * Make random key generation explicit * Remove unnecessary clap constraint * Only decrypt voting keypair for eth1 deposit * Use insecure kdf for insecure keypairs * Simplify local testnet keygen * Update local testnet * Fix eth1 sim * Add eth1 sim to CI again * Remove old local testnet docs * Tidy * Remove checks for existing validators * Tidy * Fix typos
37 lines
871 B
Bash
Executable File
37 lines
871 B
Bash
Executable File
#!/bin/bash
|
|
|
|
#
|
|
# Produces a testnet specification and a genesis state where the genesis time
|
|
# is now.
|
|
#
|
|
|
|
source ./vars.env
|
|
|
|
lcli \
|
|
--spec mainnet \
|
|
new-testnet \
|
|
--deposit-contract-address 0000000000000000000000000000000000000000 \
|
|
--testnet-dir $TESTNET_DIR \
|
|
--min-genesis-active-validator-count $VALIDATOR_COUNT \
|
|
--force
|
|
|
|
echo Specification generated at $TESTNET_DIR.
|
|
echo "Generating $VALIDATOR_COUNT validators concurrently... (this may take a while)"
|
|
|
|
lcli \
|
|
insecure-validators \
|
|
--count $VALIDATOR_COUNT \
|
|
--validators-dir $VALIDATORS_DIR \
|
|
--secrets-dir $SECRETS_DIR
|
|
|
|
echo Validators generated at $VALIDATORS_DIR with keystore passwords at $SECRETS_DIR.
|
|
echo "Building genesis state... (this might take a while)"
|
|
|
|
lcli \
|
|
--spec mainnet \
|
|
interop-genesis \
|
|
--testnet-dir $TESTNET_DIR \
|
|
$VALIDATOR_COUNT
|
|
|
|
echo Created genesis state in $TESTNET_DIR
|