Skip to content

Commit

Permalink
[Altair] update infura endpoint for initial-state (#318)
Browse files Browse the repository at this point in the history
  • Loading branch information
tbenr authored Oct 28, 2021
1 parent 58d1f27 commit d3e5504
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions docs/HowTo/Get-Started/Checkpoint-Start.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ 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
--initial-state=http://other-node:5051/eth/v2/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
[`/eth/v2/debug/beacon/states/`](https://consensys.github.io/teku/#operation/getEthV1DebugBeaconStatesWithState_id) endpoint
on the beacon chain client (for example Teku).

!!! note
Expand All @@ -35,7 +35,7 @@ on the beacon chain client (for example Teku).
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
curl -o state.ssz -H 'Accept: application/octet-stream' http://other-node:5051/eth/v2/debug/beacon/states/finalized
```
[Infura](https://infura.io/) provides initial state endpoints for free.
Registration to Infura services is required.
Expand Down
2 changes: 1 addition & 1 deletion docs/HowTo/Migrate-Database.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ To migrate a RocksDB database in [prune mode] to a LevelDB2 database:
1. [Download the latest finalized state] from a beacon chain node:

```bash
curl -o state.ssz -H 'Accept: application/octet-stream' http://other-node:5051/eth/v1/debug/beacon/states/finalized
curl -o state.ssz -H 'Accept: application/octet-stream' http://other-node:5051/eth/v2/debug/beacon/states/finalized
```

!!! note
Expand Down
2 changes: 1 addition & 1 deletion docs/Reference/CLI/CLI-Syntax.md
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ using the [`--network`](#network) option.
!!! tip

[Infura](https://infura.io/) can be used as the source of initial states with
`--initial-state https://{projectid}:{secret}@eth2-beacon-mainnet.infura.io/eth/v1/debug/beacon/states/finalized`
`--initial-state https://{projectid}:{secret}@eth2-beacon-mainnet.infura.io/eth/v2/debug/beacon/states/finalized`

### logging

Expand Down

0 comments on commit d3e5504

Please sign in to comment.