Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: predict protocol upgrade time based on voting date (#12202)
Usage: `python3 estimate_epoch_start_time.py --chain_id mainnet --voting_date "2024-10-15 00:20:00"` <details><summary>Example Output</summary> ``` Epoch -1: 13 hours, 42 minutes Epoch -2: 13 hours, 37 minutes Epoch -3: 13 hours, 15 minutes Epoch -4: 13 hours, 37 minutes Exponential weighted average epoch length: 13 hours, 33 minutes Predicted start of epoch 1: 2024-10-11 00:24:31 UTC+0000 Friday Predicted start of epoch 2: 2024-10-11 13:58:19 UTC+0000 Friday Predicted start of epoch 3: 2024-10-12 03:32:06 UTC+0000 Saturday Predicted start of epoch 4: 2024-10-12 17:05:54 UTC+0000 Saturday Predicted start of epoch 5: 2024-10-13 06:39:42 UTC+0000 Sunday Predicted start of epoch 6: 2024-10-13 20:13:29 UTC+0000 Sunday Predicted start of epoch 7: 2024-10-14 09:47:17 UTC+0000 Monday Predicted start of epoch 8: 2024-10-14 23:21:04 UTC+0000 Monday Predicted start of epoch 9: 2024-10-15 12:54:52 UTC+0000 Tuesday Predicted start of epoch 10: 2024-10-16 02:28:40 UTC+0000 Wednesday Voting date falls into epoch 8. Protocol upgrade will happen at the start of epoch 10: 2024-10-16 02:28:40 UTC+0000 Wednesday ``` </details>
- Loading branch information