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

feat: add timezone support #12189

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Conversation

stedfn
Copy link

@stedfn stedfn commented Oct 4, 2024

Usage:

python3 estimate_epoch_start_time.py --chain_id mainnet --num_future_epochs 10 --num_past_epochs 20 --timezone CET

Example Output
Epoch -1: 13 hours, 19 minutes
Epoch -2: 13 hours, 27 minutes
Epoch -3: 13 hours, 30 minutes
Epoch -4: 13 hours, 29 minutes
Epoch -5: 13 hours, 27 minutes
Epoch -6: 13 hours, 30 minutes
Epoch -7: 13 hours, 20 minutes
Epoch -8: 13 hours, 11 minutes
Epoch -9: 14 hours, 03 minutes
Epoch -10: 14 hours, 10 minutes
Epoch -11: 13 hours, 32 minutes
Epoch -12: 13 hours, 37 minutes
Epoch -13: 14 hours, 07 minutes
Epoch -14: 14 hours, 38 minutes
Epoch -15: 13 hours, 20 minutes
Epoch -16: 13 hours, 42 minutes
Epoch -17: 14 hours, 59 minutes
Epoch -18: 14 hours, 58 minutes
Epoch -19: 13 hours, 22 minutes
Epoch -20: 13 hours, 22 minutes

Exponential weighted average epoch length: 13 hours, 37 minutes
Predicted start of epoch 1: 2024-10-04 22:32:14 CEST+0200 Friday
Predicted start of epoch 2: 2024-10-05 12:09:45 CEST+0200 Saturday
Predicted start of epoch 3: 2024-10-06 01:47:17 CEST+0200 Sunday
Predicted start of epoch 4: 2024-10-06 15:24:48 CEST+0200 Sunday
Predicted start of epoch 5: 2024-10-07 05:02:19 CEST+0200 Monday
Predicted start of epoch 6: 2024-10-07 18:39:50 CEST+0200 Monday
Predicted start of epoch 7: 2024-10-08 08:17:21 CEST+0200 Tuesday
Predicted start of epoch 8: 2024-10-08 21:54:52 CEST+0200 Tuesday
Predicted start of epoch 9: 2024-10-09 11:32:24 CEST+0200 Wednesday
Predicted start of epoch 10: 2024-10-10 01:09:55 CEST+0200 Thursday

@stedfn stedfn self-assigned this Oct 4, 2024
@stedfn stedfn marked this pull request as ready for review October 4, 2024 11:22
@stedfn stedfn requested a review from a team as a code owner October 4, 2024 11:22
Copy link

codecov bot commented Oct 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 71.61%. Comparing base (0aa1343) to head (9bb8a5a).

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #12189   +/-   ##
=======================================
  Coverage   71.60%   71.61%           
=======================================
  Files         824      824           
  Lines      165513   165513           
  Branches   165513   165513           
=======================================
+ Hits       118516   118528   +12     
+ Misses      41875    41859   -16     
- Partials     5122     5126    +4     
Flag Coverage Δ
backward-compatibility 0.17% <ø> (ø)
db-migration 0.17% <ø> (ø)
genesis-check 1.25% <ø> (ø)
integration-tests 38.72% <ø> (+<0.01%) ⬆️
linux 71.40% <ø> (+<0.01%) ⬆️
linux-nightly 71.18% <ø> (-0.01%) ⬇️
macos 54.19% <ø> (+0.08%) ⬆️
pytests 1.57% <ø> (ø)
sanity-checks 1.38% <ø> (ø)
unittests 65.35% <ø> (+<0.01%) ⬆️
upgradability 0.21% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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.

1 participant