mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-01-12 03:34:20 +00:00
Simplify get_helper_indices
This commit is contained in:
parent
56fd91b9f9
commit
a9961d4ce4
@ -283,9 +283,7 @@ def get_helper_indices(indices: Sequence[GeneralizedIndex]) -> Sequence[Generali
|
||||
all_helper_indices = all_helper_indices.union(set(get_branch_indices(index)))
|
||||
all_path_indices = all_path_indices.union(set(get_path_indices(index)))
|
||||
|
||||
return sorted([
|
||||
x for x in all_helper_indices if x not in all_path_indices
|
||||
], reverse=True)
|
||||
return sorted(all_helper_indices.difference(all_path_indices), reverse=True)
|
||||
```
|
||||
|
||||
Now we provide the Merkle proof verification functions. First, for single item proofs:
|
||||
|
Loading…
x
Reference in New Issue
Block a user