-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add information about starting Teku from a recent snapshot. (#262)
* Add CLI option to disable built-in slashing protection for external signers. Signed-off-by: Byron Gravenorst <[email protected]> * Add instructions to connect to mainnet. Signed-off-by: Byron Gravenorst <[email protected]> * updating submodule to latest * Add instructions to connect to mainnet. Signed-off-by: Byron Gravenorst <[email protected]> * Fix markdown issue. Signed-off-by: Byron Gravenorst <[email protected]> * Add information about starting Teku from a recent snapshot. Signed-off-by: Byron Gravenorst <[email protected]> * Fix markdown issues. Signed-off-by: Byron Gravenorst <[email protected]> * Fix markdown issues. Signed-off-by: Byron Gravenorst <[email protected]> * Fix markdown issues. Signed-off-by: Byron Gravenorst <[email protected]> * Address reviewer feedback. Signed-off-by: Byron Gravenorst <[email protected]> * Fix markdown issue. Signed-off-by: Byron Gravenorst <[email protected]> * Update docs/HowTo/Get-Started/Checkpoint-Start.md * Update docs/HowTo/Get-Started/Checkpoint-Start.md
- Loading branch information
1 parent
582823f
commit 3f7aaaf
Showing
4 changed files
with
48 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
--- | ||
description: How to start Teku using a recent finalized checkpoint state | ||
--- | ||
|
||
# Start Teku from a recent state | ||
|
||
To get Teku up and running in only a few minutes, you can start Teku from a recent finalized | ||
checkpoint state rather than syncing from genesis. | ||
|
||
When starting from a recent checkpoint, Teku downloads historic chain data in the background. | ||
|
||
!!! important | ||
|
||
You need access to a beacon chain client with [REST API enabled] (for example Teku) to download the | ||
finalized checkpoint state file. | ||
|
||
The following command downloads a recent finalized checkpoint state from a beacon chain client, and | ||
starts Teku: | ||
|
||
```bash | ||
teku --eth1-endpoint=http://localhost:8545 \ | ||
--validator-keys=/Users/me/mainnet/validator/keys:/Users/me/mainnet/validator/passwords \ | ||
--initial-state=http://other-node:5051/eth/v1/debug/beacon/states/finalized | ||
``` | ||
|
||
The command uses the [`--initial-state`](../../Reference/CLI/CLI-Syntax.md#initial-state) option | ||
to download the finalized checkpoint state from the | ||
[`/eth/v1/debug/beacon/states/`](https://consensys.github.io/teku/#operation/getEthV1DebugBeaconStatesWithState_id) endpoint | ||
on the beacon chain client (for example Teku). | ||
|
||
!!! note | ||
|
||
You can also download a finalized checkpoint state file, and specify the location | ||
using the [`--initial-state`](../../Reference/CLI/CLI-Syntax.md#initial-state) option. To | ||
download the file and name it `state.ssz` run: | ||
|
||
```bash | ||
curl -o state.ssz -H 'Accept: application/octet-stream' http://other-node:5051/eth/v1/debug/beacon/states/finalized | ||
``` | ||
|
||
<!--links--> | ||
[REST API enabled]: ../../Reference/CLI/CLI-Syntax.md#rest-api-enabled |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters