We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cdb6725 + 3e26508 commit 1a33bf8Copy full SHA for 1a33bf8
specs/phase0/beacon-chain.md
@@ -179,6 +179,7 @@ The following values are (non-configurable) constants used throughout the specif
179
| Name | Value |
180
| - | - |
181
| `UINT64_MAX` | `uint64(2**64 - 1)` |
182
+| `UINT64_MAX_SQRT` | `uint64(4294967295)` |
183
| `GENESIS_SLOT` | `Slot(0)` |
184
| `GENESIS_EPOCH` | `Epoch(0)` |
185
| `FAR_FUTURE_EPOCH` | `Epoch(2**64 - 1)` |
@@ -601,7 +602,7 @@ def integer_squareroot(n: uint64) -> uint64:
601
602
Return the largest integer ``x`` such that ``x**2 <= n``.
603
"""
604
if n == UINT64_MAX:
- return uint64(4294967295)
605
+ return UINT64_MAX_SQRT
606
x = n
607
y = (x + 1) // 2
608
while y < x:
0 commit comments