mirror of
https://gitlab.com/pulsechaincom/lighthouse-pulse.git
synced 2024-12-22 03:30:38 +00:00
91a7f51ab0
## Issue Addressed N/A ## Proposed Changes Modifies the local testnet scripts to start a network with genesis validators embedded into the genesis state. This allows us to start a local testnet without the need for deploying a deposit contract or depositing validators pre-genesis. This also enables us to start a local test network at any fork we want without going through fork transitions. Also adds scripts to start multiple geth clients and peer them with each other and peer the geth clients with beacon nodes to start a post merge local testnet. ## Additional info Adds a new lcli command `mnemonics-validators` that generates validator directories derived from a given mnemonic. Adds a new `derived-genesis-state` option to the `lcli new-testnet` command to generate a genesis state populated with validators derived from a mnemonic.
20 lines
298 B
Bash
Executable File
20 lines
298 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Kill processes
|
|
|
|
set -Euo pipefail
|
|
|
|
# First parameter is the file with
|
|
# one pid per line.
|
|
if [ -f "$1" ]; then
|
|
while read pid
|
|
do
|
|
# handle the case of blank lines
|
|
[[ -n "$pid" ]] || continue
|
|
|
|
echo killing $pid
|
|
kill $pid || true
|
|
done < $1
|
|
fi
|
|
|
|
|