or
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up
Syntax | Example | Reference | |
---|---|---|---|
# Header | Header | 基本排版 | |
- Unordered List |
|
||
1. Ordered List |
|
||
- [ ] Todo List |
|
||
> Blockquote | Blockquote |
||
**Bold font** | Bold font | ||
*Italics font* | Italics font | ||
~~Strikethrough~~ | |||
19^th^ | 19th | ||
H~2~O | H2O | ||
++Inserted text++ | Inserted text | ||
==Marked text== | Marked text | ||
[link text](https:// "title") | Link | ||
 | Image | ||
`Code` | Code |
在筆記中貼入程式碼 | |
```javascript var i = 0; ``` |
|
||
:smile: | ![]() |
Emoji list | |
{%youtube youtube_id %} | Externals | ||
$L^aT_eX$ | LaTeX | ||
:::info This is a alert area. ::: |
This is a alert area. |
On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?
Please give us some advice and help us improve HackMD.
Do you want to remove this version name and description?
Syncing
xxxxxxxxxx
Seeking for proper EIP-7514 value for Gnosis chain
The Ethereum Improvement Proposal EIP-7514 introduces a significant specification parameter:
MAX_PER_EPOCH_ACTIVATION_CHURN_LIMIT
. This parameter plays a crucial role in shaping the activation cue, directly impacting the activation churn. It's important to note that this parameter specifically affects the activation cue and does not fall under the considerations of weak subjectivity.Understanding Activation Churn
The activation churn equation is a fundamental aspect of EIP-7514. The churn limit for validator activation in the current epoch is determined by the following function:
try in google colab
The Validator Set and Growth Projection
EIP-7514 is expected to become active during the Dancun upgrade, tentatively scheduled for the
EOY 2023
. To determine an optimal value forMAX_PER_EPOCH_ACTIVATION_CHURN_LIMIT
, we analyze the expected size of the validator set around the time of the hardfork.Based on growth rate projections since the Shapella hard fork on Gnosis chain, it is estimated that the validator set will reach approximately
163000
validators by mid-December 2023. The current mean growth rate stands at approximately165 validators per day
:try in google colab
Analyzing Activation Speed
Possible queue grow (Ethereum demand)
To comprehend how
EIP-7514
might affect the entry queue on the Gnosis chain, we take Ethereum entry demand model and consider two scenarios: the worst Ethereum queue on June 10, 2023, and the current Ethereum status as of end of September, 2023. These scenarios allow us to calculate wait periods for differentMAX_PER_EPOCH_ACTIVATION_CHURN_LIMIT
values, assuming that the demand on the Gnosis chain aligns with that of Ethereum AT MOST.try in google colab
Gnosis entry demand
This following plot provides insights into the historical demand to enter the network, represented by the average activations per epoch, for each month since December 2022 ("The Merge" on Gnosis).
Plot shows (
monthly_activations / monthly_epochs
) for every month respectively.try in google colab
The highest value so far is
0.35
activations per epoch (~1 activation per 3 epochs) in July 2023.We can also calculate the time it would take to process daily entries for each listed
MAX_PER_EPOCH_ACTIVATION_CHURN_LIMIT
. For the current (September 2023) daily entries (165/day
), the table below showcases the results:Columns:
try in google colab
We see that even with the tightest
MAX_PER_EPOCH_ACTIVATION_CHURN_LIMIT: 2
it takes only7.7%
of day time to proccess all daily entries (with current demand).The maximum daily capacities(
MAX_PER_EPOCH_ACTIVATION_CHURN_LIMIT * epochs_number_24h
) looks as follows (assuming 1 GNO == 100$):try in google colab
As chain capacity with
MAX_PER_EPOCH_ACTIVATION_CHURN_LIMIT: 2
is way more higher than current and maximal historical demand it would be a safe ground to pick the lowest value as it provides highest security benefits and better serves the purpose described in EIP.How fast chain will churn at max
The churn percantage also might be helpful to analyze how different limits suppress chain churn while validator set grows:
The plot indicates that tightening the entry rate, denoted by
MAX_PER_EPOCH_ACTIVATION_CHURN_LIMIT: 2
, could have a significant impact if the validator set grows substantially. However, this effect is deemed acceptable.Optimizing Churn Speed for Increased Security
A lower value for
MAX_PER_EPOCH_ACTIVATION_CHURN_LIMIT
can significantly contribute to a slower chain churning speed. This deliberate slowing of the churn process inherently increases the security of the chain. Moreover, we can calculate the time it would take to churn the validator set to reach target fractions (>1/3
and>2/3
of the chain) for differentMAX_PER_EPOCH_ACTIVATION_CHURN_LIMIT
values.>1/3
fraction considered important threshold because it devaluates the Gasper consensus security assumption, i.e. chain become>1/3
slashable and dishonest party could prevent chain finalization>2/3
threshold reflects a situation akin to a "51% attack," where a dishonest party gains control over a majoritytry in google colab
Recap
Important Consideration:
Resilience to Demand Surges: The conservative value of 2 equips the chain to handle unexpected spikes in demand, more than 10 times higher from current.
Optimal Balance with UX: While 2 is the lowest viable value, it's essential to note that choosing such a low churn limit strikes a delicate balance. It optimizes chain security and churn reduction without dramatically impacting UX.
Aggressive yet Cautious Choice: This choice reflects an aggressive approach in freezing chain economy grow to provide time for better solutions, with an acknowledgment that possible growth tightening is viewed as acceptable.