Skip to content

Commit

Permalink
update the number of validators
Browse files Browse the repository at this point in the history
  • Loading branch information
limyewjin committed Dec 8, 2024
1 parent add1bbc commit 0ec9b95
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
24 changes: 12 additions & 12 deletions _posts/2024-01-27-eth-validator-block-probability.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ As an Ethereum staker, one of the key aspects of participation in the network is

The Ethereum PoS protocol, specifically in the context of block validation, operates with discrete time units called slots. A new block is proposed in each slot by a randomly selected validator. The probability of a specific validator being chosen for any given slot is inversely proportional to the total number of effective ETH balance of each validator. See [Block Proposal (ethereum.org)](https://ethereum.org/en/developers/docs/consensus-mechanisms/pos/block-proposal/)

1. **Total Eligible ETH (N):** The total amount of eligible ETH in the network. As of 2024-12-07 10:15, it's approximately 34294228 ETH.
1. **Total Eligible ETH (N):** The total amount of eligible ETH in the network. As of 2024-12-08 10:15, it's approximately 34310677 ETH.
2. **Your ETH (V):** The amount of ETH you have staked.
3. **Time Period (T):** The duration for which you want to calculate the probability, measured in slots. (Note: The Ethereum network typically operates with a slot time of 12 seconds.)

Expand All @@ -38,11 +38,11 @@ Handy number of slots in various time periods

## Probabilities for 32 ETH

- **Probability of not proposing a block in one slot:** $$ 1 - \frac{32}{34294228} $$
- **One Hour (300 slots):** $$ \left( 1 - \frac{32}{34294228} \right)^{300} $$
- **One Day (7,200 slots):** $$ \left( 1 - \frac{32}{34294228} \right)^{7200} $$
- **One Week (50,400 slots):** $$ \left( 1 - \frac{32}{34294228} \right)^{50400} $$
- **One Month (approx. 30 days, 216,000 slots):** $$ \left( 1 - \frac{32}{34294228} \right)^{216000} $$
- **Probability of not proposing a block in one slot:** $$ 1 - \frac{32}{34310677} $$
- **One Hour (300 slots):** $$ \left( 1 - \frac{32}{34310677} \right)^{300} $$
- **One Day (7,200 slots):** $$ \left( 1 - \frac{32}{34310677} \right)^{7200} $$
- **One Week (50,400 slots):** $$ \left( 1 - \frac{32}{34310677} \right)^{50400} $$
- **One Month (approx. 30 days, 216,000 slots):** $$ \left( 1 - \frac{32}{34310677} \right)^{216000} $$

### Summary
- **Chance of not proposing a block in one hour:** Approximately 99.97%
Expand All @@ -52,15 +52,15 @@ Handy number of slots in various time periods

## Probabilities for 3200 ETH

- **Probability of not proposing a block in one slot:** $$ 1 - \frac{3200}{34294228} $$
- **One Hour (300 slots):** $$ \left( 1 - \frac{3200}{34294228} \right)^{300} $$
- **One Day (7,200 slots):** $$ \left( 1 - \frac{3200}{34294228} \right)^{7200} $$
- **One Week (50,400 slots):** $$ \left( 1 - \frac{3200}{34294228} \right)^{50400} $$
- **One Month (approx. 30 days, 216,000 slots):** $$ \left( 1 - \frac{3200}{34294228} \right)^{216000} $$
- **Probability of not proposing a block in one slot:** $$ 1 - \frac{3200}{34310677} $$
- **One Hour (300 slots):** $$ \left( 1 - \frac{3200}{34310677} \right)^{300} $$
- **One Day (7,200 slots):** $$ \left( 1 - \frac{3200}{34310677} \right)^{7200} $$
- **One Week (50,400 slots):** $$ \left( 1 - \frac{3200}{34310677} \right)^{50400} $$
- **One Month (approx. 30 days, 216,000 slots):** $$ \left( 1 - \frac{3200}{34310677} \right)^{216000} $$

### Summary
- **Chance of not proposing a block in one hour:** Approximately 97.24%
- **Chance of not proposing a block in one day:** Approximately 51.08%
- **Chance of not proposing a block in one day:** Approximately 51.09%
- **Chance of not proposing a block in one week:** Approximately 0.91%
- **Chance of not proposing a block in one month:** Practically 0% (very close to zero)

Expand Down
4 changes: 2 additions & 2 deletions assets/html/eth_block_probability.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ <h1>Probability of Proposing Blocks</h1>
<input type="number" id="eth" min="1" value="32">
<br>
<label for="totalEligibleEther">Total Eligible Ether:</label>
<input type="number" id="totalEligibleEther" min="1" value="34294228">
<span style="font-size: 12px; color: gray;">(Last updated: 2024-12-07 10:15)</span>
<input type="number" id="totalEligibleEther" min="1" value="34310677">
<span style="font-size: 12px; color: gray;">(Last updated: 2024-12-08 10:15)</span>
<br>
<label for="days">Number of Days:</label>
<input type="number" id="days" min="1" value="30">
Expand Down

0 comments on commit 0ec9b95

Please sign in to comment.