Phase0 - Beacon Chain Flashcards
The BeaconState encapsulates all of the information relating to:
- Who the validators are
- Which state the validators are in
- Which chain in the block tree this state belongs to
What is the number of shard supported in Ethereum POS
64
The ethereum beacon chain supports how many shards per slot?
64
To enable state transitions, the beacon chain has a state_transition function which takes as input a _________ and a _______ and returns a new ___________
To enable state transitions, the beacon chain has a state_transition function which takes as input a BeaconState (pre state) and a BeaconBlock and returns a new beacon state (what we call a post state)
source: https://notes.ethereum.org/@djrtwo/Bkn3zpwxB
What is the pre state
The beacon state before a state transition
What is a post state
The beacon state after a state transition has been applied
What are needed for state transition in beacon chain?
- A pre state (Beacon state)
- A beacon block
- State transition function
When is the post state of a beacon block considered valid?
> Beginning with the genesis state, the post state of a block is considered valid if it passes all of the guards within the state_transition function
https://notes.ethereum.org/@djrtwo/Bkn3zpwxB
What does the fork choice rule do?
> Given a block tree, the fork choice rule provides a single chain (the canonical chain) and resulting state based upon recent messages from validators
> The fork choice rule consumes the block-tree along with the set of most recent attestations from active validators, and identifies a block as the current head of the chain
https://notes.ethereum.org/@djrtwo/Bkn3zpwxB
What does LMD GHOST stand for?
Largest Message Driven Greedy Heaviest Observed Sub Tree
What is the fork choice rule of the Beacon Chain?
LMD GHOST (“Latest Message Driven Greedy Heaviest-Observed Sub-Tree”),
How many attestation can a validator make within a slot within an epoch?
1
How long is a slot?
12 seconds
How many slots make an epoch?
32 slots
How long is an epoch?
12 seconds * 32 = 384 seconds = 6,4 minutes