|
12 | 12 |
|
13 | 13 | # --- Time Parameters --- |
14 | 14 |
|
15 | | -SLOT_DURATION_MS: Final = 4000 |
| 15 | +SLOT_DURATION_MS: Final = Uint64(4000) |
16 | 16 | """The fixed duration of a single slot in milliseconds.""" |
17 | 17 |
|
18 | | -SECONDS_PER_SLOT: Final = SLOT_DURATION_MS // 1000 |
| 18 | +SECONDS_PER_SLOT: Final = SLOT_DURATION_MS // Uint64(1000) |
19 | 19 | """The fixed duration of a single slot in seconds.""" |
20 | 20 |
|
21 | | -JUSTIFICATION_LOOKBACK_SLOTS: Final = 3 |
| 21 | +JUSTIFICATION_LOOKBACK_SLOTS: Final = Uint64(3) |
22 | 22 | """The number of slots to lookback for justification.""" |
23 | 23 |
|
24 | | -PROPOSER_REORG_CUTOFF_BPS: Final = 2500 |
| 24 | +PROPOSER_REORG_CUTOFF_BPS: Final = Uint64(2500) |
25 | 25 | """ |
26 | 26 | The deadline within a slot (in basis points) for a proposer to publish a |
27 | 27 | block. |
|
31 | 31 | (2500 bps = 25% of slot duration). |
32 | 32 | """ |
33 | 33 |
|
34 | | -VOTE_DUE_BPS: Final = 5000 |
| 34 | +VOTE_DUE_BPS: Final = Uint64(5000) |
35 | 35 | """ |
36 | 36 | The deadline within a slot (in basis points) by which validators must |
37 | 37 | submit their votes. |
38 | 38 |
|
39 | 39 | (5000 bps = 50% of slot duration). |
40 | 40 | """ |
41 | 41 |
|
42 | | -FAST_CONFIRM_DUE_BPS: Final = 7500 |
| 42 | +FAST_CONFIRM_DUE_BPS: Final = Uint64(7500) |
43 | 43 | """ |
44 | 44 | The deadline within a slot (in basis points) for achieving a fast |
45 | 45 | confirmation. |
46 | 46 |
|
47 | 47 | (7500 bps = 75% of slot duration). |
48 | 48 | """ |
49 | 49 |
|
50 | | -VIEW_FREEZE_CUTOFF_BPS: Final = 7500 |
| 50 | +VIEW_FREEZE_CUTOFF_BPS: Final = Uint64(7500) |
51 | 51 | """ |
52 | 52 | The cutoff within a slot (in basis points) after which the current view is |
53 | 53 | considered 'frozen', preventing further changes. |
|
57 | 57 |
|
58 | 58 | # --- State List Length Presets --- |
59 | 59 |
|
60 | | -HISTORICAL_ROOTS_LIMIT: Final = 2**18 |
| 60 | +HISTORICAL_ROOTS_LIMIT: Final = Uint64(2**18) |
61 | 61 | """ |
62 | 62 | The maximum number of historical block roots to store in the state. |
63 | 63 |
|
64 | 64 | With a 4-second slot, this corresponds to a history |
65 | 65 | of approximately 12.1 days. |
66 | 66 | """ |
67 | 67 |
|
68 | | -VALIDATOR_REGISTRY_LIMIT: Final = 2**12 |
| 68 | +VALIDATOR_REGISTRY_LIMIT: Final = Uint64(2**12) |
69 | 69 | """The maximum number of validators that can be in the registry.""" |
70 | 70 |
|
71 | 71 |
|
|
0 commit comments