diff --git a/specs/light_client/sync_protocol.md b/specs/light_client/sync_protocol.md index feef1fcea..207e0e63e 100644 --- a/specs/light_client/sync_protocol.md +++ b/specs/light_client/sync_protocol.md @@ -86,7 +86,7 @@ def unpack_compact_validator(compact_validator: CompactValidator) -> Tuple[Valid """ return ( ValidatorIndex(compact_validator >> 16), - (compact_validator >> 15) % 2 == 0, + bool((compact_validator >> 15) % 2), uint64(compact_validator & (2**15 - 1)), ) ```