-
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.
Update weak subjectivity content (#214)
* 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]> * Added weak subjectivity concept material. Signed-off-by: Byron Gravenorst <[email protected]> * Address reviewer feedback. Signed-off-by: Byron Gravenorst <[email protected]>
- Loading branch information
1 parent
5d94e9e
commit 38b3865
Showing
3 changed files
with
56 additions
and
4 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,38 @@ | ||
--- | ||
description: Describe weak subjectivity | ||
--- | ||
|
||
# Weak subjectivity | ||
|
||
The weak subjectivity period refers to how far behind the chain head a node can be before 1/3 of | ||
validators may have exited since the node was last in sync. | ||
|
||
For example, if 1/3 of validators withdraw their stake and continue signing blocks and | ||
attestations, they can form a chain which conflicts with the finalised state. If your node is far | ||
enough behind the chain head not to be aware that they've withdrawn their funds, these validators | ||
can act dishonestly and continue feeding you blocks to lead you down the wrong chain. | ||
|
||
!!! note | ||
|
||
If a node is aware that a validator has withdrawn its funds, the node will reject the | ||
validator's attestations. | ||
|
||
## Safely sync your node | ||
|
||
Teku provides two methods to safely sync a node that's been offline for an extended period. | ||
|
||
1. Use [`--ws-checkpoint`](../Reference/CLI/CLI-Syntax.md#ws-checkpoint) to supply a weak | ||
subjectivity checkpoint from which a node can securely update its view of the current state. | ||
1. Use [`--initial-state`](../Reference/CLI/CLI-Syntax.md#initial-state) to supply an SSZ encoded | ||
state file from which to sync. | ||
|
||
!!! tip | ||
|
||
The [BeaconScan chain explorer] provides the most recent weak subjectivity checkpoint from | ||
which to safely update your node's view of the current state. | ||
|
||
Use the [`/teku/v1/beacon/states/<state-id>`](https://consensys.github.io/teku/#operation/getTekuV1BeaconStatesWithState_id) | ||
API on an updated node to download a recent finalized state as an SSZ encoded state file. | ||
|
||
<!-- links --> | ||
[BeaconScan chain explorer]: https://beaconscan.com/ws_checkpoint |
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