Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simulate various DiffAdjDivisor values to determine the time required to increase the difficulty level to the specified target #49

Merged
merged 10 commits into from
Jan 3, 2024

Conversation

qzhodl
Copy link
Contributor

@qzhodl qzhodl commented Dec 25, 2023

Iterations: python es_mc.py 1024 iterations

  • init diff: 20 replicas
  • Iterations: 1000
  • mining power: 20 replicas
  • simulation rounds: 100

EthStorage (next_block_time_exp)

DiffAdjDivisor Block time mean Block time standard variance Coefficient of variation
1024 10732 hrs 11479 hrs 1.07
32 10192 hrs 10187 hrs 0.99

Ethereum (next_block_time_iter)

DiffAdjDivisor Block time mean Block time standard variance Coefficient of variation
1024 10382 hrs 10903 hrs 1.05
32 10049 hrs 10105 hrs 1.00

Conclusion: No big differences in standard variance


grow_to_diff: python es_mc.py 1024 grow_to_diff

  • init diff: 10 replicas
  • target diff: 20 replicas
  • mining power: 20 replicas
  • simulation rounds: 100

EthStorage

DiffAdjDivisor Duration mean Duration standard variance Coefficient of variation
1024 19192 hrs 12655 hrs 0.65
32 182 hrs 111 hrs 0.61

Ethereum

DiffAdjDivisor Duration mean Duration standard variance Coefficient of variation
1024 18292 hrs 10338 hrs 0.56
32 182 hrs 118 hrs 0.64

drop_to_diff: python es_mc.py 1024 drop_to_diff

  • init diff: 40 replicas
  • target diff: 20 replicas
  • mining power: 20 replicas
  • simulation rounds: 100

EthStorage

DiffAdjDivisor Duration mean Duration standard variance Coefficient of variation
1024 6454 hrs 847 hrs 0.13
32 156 hrs 58 hrs 0.37

Ethereum

DiffAdjDivisor Duration mean Duration standard variance Coefficient of variation
1024 6608 hrs 1089 hrs 0.16
32 136 hrs 56 hrs 0.41

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants