Minor useability updates (#1005)

* Adds lcli to the makefile

* Update docs

* Set genesis fork version to default
This commit is contained in:
Age Manning 2020-04-15 17:46:03 +10:00 committed by GitHub
parent be7aaa3dbe
commit d3dfd72f4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 18 deletions

View File

@ -7,6 +7,7 @@ EF_TESTS = "tests/ef_tests"
# Binaries will most likely be found in `./target/release` # Binaries will most likely be found in `./target/release`
install: install:
cargo install --path lighthouse --force --locked cargo install --path lighthouse --force --locked
cargo install --path lcli --force --locked
# Runs the full workspace tests in **release**, without downloading any additional # Runs the full workspace tests in **release**, without downloading any additional
# test vectors. # test vectors.

View File

@ -23,7 +23,7 @@ Typical users may install `lighthouse` to `CARGO_HOME` with `cargo install
`PATH` environment variable"](https://www.rust-lang.org/tools/install) for more `PATH` environment variable"](https://www.rust-lang.org/tools/install) for more
information. information.
For develeopers, we recommend building Lighthouse using the `$ cargo build --release For developers, we recommend building Lighthouse using the `$ cargo build --release
--bin lighthouse` command and executing binaries from the --bin lighthouse` command and executing binaries from the
`<lighthouse-repository>/target/release` directory. This is more ergonomic when `<lighthouse-repository>/target/release` directory. This is more ergonomic when
modifying and rebuilding regularly. modifying and rebuilding regularly.
@ -33,7 +33,6 @@ modifying and rebuilding regularly.
Each binary supports the `--help` flag, this is the best source of Each binary supports the `--help` flag, this is the best source of
documentation. documentation.
```bash ```bash
$ lighthouse beacon_node --help $ lighthouse beacon_node --help
``` ```
@ -42,22 +41,15 @@ $ lighthouse beacon_node --help
$ lighthouse validator_client --help $ lighthouse validator_client --help
``` ```
## Beacon Node ## Creating a new database/testnet
The `$ lighthouse beacon_node` (or `$ lighthouse bn`) command has two primary Lighthouse should run out-of-the box and connect to the current testnet
tasks: maintained by Sigma Prime.
- **Resuming** an existing database with `$ lighthouse bn`. However, for developers, testnets can be created by following the instructions
- **Creating** a new testnet database using `$ lighthouse bn testnet`. outlined in [testnets](./testnets.md). The steps listed here will create a
local database specified to a new testnet.
## Creating a new database
Use the `$ lighthouse bn testnet` command (see [testnets](./testnets.md) for
more information).
## Resuming from an existing database ## Resuming from an existing database
Once a database has been created, it can be resumed by running `$ lighthouse bn`. Once a database/testnet has been created, it can be resumed by running `$ lighthouse bn`.
Presently, you are not allowed to call `$ lighthouse bn` unless you have first
created a database using `$ lighthouse bn testnet`.

View File

@ -55,7 +55,7 @@ Once you have `lcli` installed, create a new testnet directory with:
lcli new-testnet lcli new-testnet
``` ```
> - This will create a "mainnet" spec testnet. To create a minimal spec use `lcli --spec minim new-testnet`. > - This will create a "mainnet" spec testnet. To create a minimal spec use `lcli --spec minimal new-testnet`.
> - The `lcli new-testnet` command has many options, use `lcli new-testnet --help` to see them. > - The `lcli new-testnet` command has many options, use `lcli new-testnet --help` to see them.
### 1.3 Create a genesis state ### 1.3 Create a genesis state

View File

@ -339,7 +339,7 @@ fn main() {
.long("genesis-fork-version") .long("genesis-fork-version")
.value_name("HEX") .value_name("HEX")
.takes_value(true) .takes_value(true)
.default_value("0x01030307") // [1, 3, 3, 7] .default_value("0x00000000")
.help("Used to avoid reply attacks between testnets. Recommended to set to .help("Used to avoid reply attacks between testnets. Recommended to set to
non-default."), non-default."),
) )