mirror of
https://github.com/ethereum/consensus-specs.git
synced 2026-02-02 09:35:00 -05:00
Fixed get generalized indices
This commit is contained in:
@@ -142,7 +142,7 @@ def concat_generalized_indices(*indices: Sequence[GeneralizedIndex]) -> Generali
|
||||
"""
|
||||
o = GeneralizedIndex(1)
|
||||
for i in indices:
|
||||
o = o * get_previous_power_of_2(i) + i
|
||||
o = o * get_previous_power_of_2(i) + (i - get_previous_power_of_2(i))
|
||||
return o
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user