mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-23 23:04:53 +00:00
Markdown linter (#5494)
* linter * Add markdown linter * add env * only check markdown * Add token * Update .github/workflows/test-suite.yml * Markdown linter * Exit code * Update script * rename * mdlint * Add an empty line after end of file * Testing disable * add text * update mdlint.sh * ori validator inclusion * Add config yml file * Remove MD041 and fix advanced-datadir file * FIx validator inclusion file conflict * Merge branch 'unstable' into markdown-linter * change files * Merge branch 'markdown-linter' of https://github.com/chong-he/lighthouse into markdown-linter * mdlint * Remove MD025 * Remove MD036 * Remove MD045 * Removr MD001 * Set MD028 to false * Remove MD024 * Remove MD055 * Remove MD029 * Remove MD040 * Set MD040 to false * Set MD033 to false * Set MD013 to false * Rearrange yml file * Update mdlint.sh and test * Test remove fix * Test with fix * Test with space * Fix summary indentation * Test mdlint.sh * Update mdlint.sh * Test * Update * Test fix * Test again * Fix * merge into check-code * Update scripts/mdlint.sh Co-authored-by: Mac L <mjladson@pm.me> * Update scripts/mdlint.sh Co-authored-by: Mac L <mjladson@pm.me> * Remove set -e * Add comment * Merge pull request #7 from chong-he/unstable Merge unstable to markdown branch * mdlint * Merge branch 'unstable' into markdown-linter * mdlint
This commit is contained in:
@@ -48,6 +48,7 @@ lighthouse \
|
||||
--suggested-fee-recipient <ADDRESS> \
|
||||
--output-path ./
|
||||
```
|
||||
|
||||
> If the flag `--first-index` is not provided, it will default to using index 0.
|
||||
> The `--suggested-fee-recipient` flag may be omitted to use whatever default
|
||||
> value the VC uses. It does not necessarily need to be identical to
|
||||
@@ -63,6 +64,7 @@ lighthouse \
|
||||
--validators-file validators.json \
|
||||
--vc-token <API-TOKEN-PATH>
|
||||
```
|
||||
|
||||
> This is assuming that `validators.json` is in the present working directory. If it is not, insert the directory of the file.
|
||||
> Be sure to remove `./validators.json` after the import is successful since it
|
||||
> contains unencrypted validator keystores.
|
||||
@@ -141,7 +143,6 @@ must be known. The location of the file varies, but it is located in the
|
||||
`~/.lighthouse/mainnet/validators/api-token.txt`. We will use `<API-TOKEN-PATH>`
|
||||
to substitute this value. If you are unsure of the `api-token.txt` path, you can run `curl http://localhost:5062/lighthouse/auth` which will show the path.
|
||||
|
||||
|
||||
Once the VC is running, use the `import` command to import the validators to the VC:
|
||||
|
||||
```bash
|
||||
@@ -166,16 +167,18 @@ The user should now *securely* delete the `validators.json` file (e.g., `shred -
|
||||
The `validators.json` contains the unencrypted validator keys and must not be
|
||||
shared with anyone.
|
||||
At the same time, `lighthouse vc` will log:
|
||||
|
||||
```bash
|
||||
INFO Importing keystores via standard HTTP API, count: 1
|
||||
WARN No slashing protection data provided with keystores
|
||||
INFO Enabled validator voting_pubkey: 0xab6e29f1b98fedfca878edce2b471f1b5ee58ee4c3bd216201f98254ef6f6eac40a53d74c8b7da54f51d3e85cacae92f, signing_method: local_keystore
|
||||
INFO Modified key_cache saved successfully
|
||||
```
|
||||
The WARN message means that the `validators.json` file does not contain the slashing protection data. This is normal if you are starting a new validator. The flag `--enable-doppelganger-protection` will also protect users from potential slashing risk.
|
||||
|
||||
The WARN message means that the `validators.json` file does not contain the slashing protection data. This is normal if you are starting a new validator. The flag `--enable-doppelganger-protection` will also protect users from potential slashing risk.
|
||||
The validators will now go through 2-3 epochs of [doppelganger
|
||||
protection](./validator-doppelganger.md) and will automatically start performing
|
||||
their duties when they are deposited and activated.
|
||||
their duties when they are deposited and activated.
|
||||
|
||||
If the host VC contains the same public key as the `validators.json` file, an error will be shown and the `import` process will stop:
|
||||
|
||||
@@ -194,6 +197,7 @@ lighthouse \
|
||||
--vc-token <API-TOKEN-PATH> \
|
||||
--ignore-duplicates
|
||||
```
|
||||
|
||||
and the output will be as follows:
|
||||
|
||||
```bash
|
||||
|
||||
Reference in New Issue
Block a user