Skip to content

Commit 202b21d

Browse files
authored
docs: update consolidated specs to v1.4.0-beta.7 (#773)
1 parent d4f5633 commit 202b21d

File tree

4 files changed

+287
-31
lines changed

4 files changed

+287
-31
lines changed

docs/specs/beacon-chain.md

+5
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ The following values are (non-configurable) constants used throughout the specif
184184

185185
| Name | Value |
186186
| - | - |
187+
| `UINT64_MAX` | `uint64(2**64 - 1)` |
187188
| `GENESIS_SLOT` | `Slot(0)` |
188189
| `GENESIS_EPOCH` | `Epoch(0)` |
189190
| `FAR_FUTURE_EPOCH` | `Epoch(2**64 - 1)` |
@@ -921,6 +922,8 @@ def integer_squareroot(n: uint64) -> uint64:
921922
"""
922923
Return the largest integer ``x`` such that ``x**2 <= n``.
923924
"""
925+
if n == UINT64_MAX:
926+
return uint64(4294967295)
924927
x = n
925928
y = (x + 1) // 2
926929
while y < x:
@@ -2032,6 +2035,8 @@ def process_slot(state: BeaconState) -> None:
20322035

20332036
### Epoch processing
20342037

2038+
*Note*: The function `process_historical_summaries_update` replaces `process_historical_roots_update` in Capella.
2039+
20352040
```python
20362041
def process_epoch(state: BeaconState) -> None:
20372042
process_justification_and_finalization(state)

0 commit comments

Comments
 (0)