Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions scripts/local_testnet/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,26 +19,26 @@ Assuming you are happy with the configuration in `var.env`, create the testnet
directory, genesis state and validator keys with:

```bash
./setup
./setup.sh
```

Start the first beacon node:

```bash
./beacon_node
./beacon_node.sh
```

In a new terminal, start the validator client which will attach to the first
beacon node:

```bash
./validator_client
./validator_client.sh
```

In a new terminal, start the second beacon node which will peer with the first:

```bash
./second_beacon_node
./second_beacon_node.sh
```

## Additional Info
Expand All @@ -49,17 +49,17 @@ The beacon nodes and validator client have their `--debug-level` set to `info`.
Specify a different debug level like this:

```bash
./validator_client debug
./beacon_node trace
./second_beacon_node warn
./validator_client.sh debug
./beacon_node.sh trace
./second_beacon_node.sh warn
```

### Starting fresh

Delete the current testnet and all related files using:

```bash
./clean
./clean.sh
```


Expand All @@ -71,9 +71,9 @@ genesis state will be far in the future, causing lots of skip slots.
Update the genesis time to now using:

```bash
./reset_genesis_time
./reset_genesis_time.sh
```

> Note: you probably want to drop the beacon node database and the validator
> client slashing database if you do this. When using small validator counts
> it's probably easy to just use `./clean && ./setup`.
> it's probably easy to just use `./clean.sh && ./setup.sh`.
2 changes: 1 addition & 1 deletion scripts/local_testnet/beacon_node.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

#
# Starts a beacon node based upon a genesis state created by
Expand Down
2 changes: 1 addition & 1 deletion scripts/local_testnet/second_beacon_node.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

#
# Starts a beacon node based upon a genesis state created by
Expand Down
2 changes: 1 addition & 1 deletion scripts/local_testnet/setup.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

#
# Produces a testnet specification and a genesis state where the genesis time
Expand Down
2 changes: 1 addition & 1 deletion scripts/local_testnet/validator_client.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

#
# Starts a validator client based upon a genesis state created by
Expand Down