Home/Blockchain/Proof of Stake Demo/Validator Selection

🎰 The Validator Selection Lottery

Understand how the network randomly picks validators to create the next block

🎯 How Validators Are Chosen

The network uses weighted randomness to select validators. More stake = higher probability of selection, but everyone has a chance.

🎲 Weighted Random Selection

Think of it like a raffle where your stake determines how many tickets you hold. More tickets = higher chance of winning, but luck still plays a role.

Selection Algorithm:
1.Calculate total staked: 32 + 64 + 48 + 16 = 160 ETH
2.Alice's probability: 32/160 = 20%
3.Bob's probability: 64/160 = 40%
4.Generate random number, select based on weights

🎮 Selection Simulator

Click "Select Validator" to simulate the selection process. Watch how larger stakes get chosen more frequently:

Round: 0
Alice
Stake: 32 ETH
Weight
20%
Selected
0x
Actual %
0%
Bob
Stake: 64 ETH
Weight
40%
Selected
0x
Actual %
0%
Carol
Stake: 48 ETH
Weight
30%
Selected
0x
Actual %
0%
Dave
Stake: 16 ETH
Weight
10%
Selected
0x
Actual %
0%

Selection Frequency

Ethereum:
Validator selected every ~6 minutes on average
Total Validators:
~900,000 active validators on Ethereum
Your Turn:
32 ETH stake = selected ~1-2 times per day

🎯Fairness Guarantees

  • Verifiable: Selection uses on-chain randomness
  • Unpredictable: No one knows in advance
  • Proportional: Rewards match stake percentage
  • Democratic: Even small stakers get turns

🔄 Validator Duties

📝Block Proposer

When selected, create new block with transactions. Happens ~once per day for 32 ETH stake. Earn base reward + transaction fees.

Attestor

Vote on proposed blocks every ~6 minutes. Most common duty. Earn small rewards for each correct attestation.

🔗Sync Committee

Occasionally selected to help light clients sync. Serves for ~27 hours when chosen. Extra rewards for participation.

💡 Why Weighted Randomness?

Benefits
  • • Incentivizes larger stakes (more security)
  • • Still gives small stakers a chance
  • • Prevents predictability (can't game system)
  • • Rewards align with economic risk
Prevents
  • • Validator cartels (can't coordinate)
  • • Timing attacks (unpredictable selection)
  • • Small stake dominance (weighted by risk)
  • • Predictable block proposals