mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-01-28 19:35:18 +00:00
Merge pull request #1380 from terencechain/patch-84
Update `unpack_compact_validator` in sync protocol
This commit is contained in:
commit
07bbbf0de3
@ -86,7 +86,7 @@ def unpack_compact_validator(compact_validator: CompactValidator) -> Tuple[Valid
|
||||
"""
|
||||
return (
|
||||
ValidatorIndex(compact_validator >> 16),
|
||||
(compact_validator >> 15) % 2,
|
||||
bool((compact_validator >> 15) % 2),
|
||||
uint64(compact_validator & (2**15 - 1)),
|
||||
)
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user