From 79e34a00e82518bdef23b265a15b5f7f9ef1c797 Mon Sep 17 00:00:00 2001 From: terence tsao Date: Mon, 26 Aug 2019 17:37:18 -0700 Subject: [PATCH] Update sync_protocol.md --- specs/light_client/sync_protocol.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specs/light_client/sync_protocol.md b/specs/light_client/sync_protocol.md index 944abf8c1..feef1fcea 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, + (compact_validator >> 15) % 2 == 0, uint64(compact_validator & (2**15 - 1)), ) ```