mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-01-12 03:34:20 +00:00
fix review comment: one line cache set
This commit is contained in:
parent
dd79a0edb5
commit
f4de5e3c72
@ -85,8 +85,7 @@ def compute_committee(indices: List[ValidatorIndex], # type: ignore
|
||||
param_hash = (hash_tree_root(indices), seed, index, count)
|
||||
|
||||
if param_hash not in committee_cache:
|
||||
ret = _compute_committee(indices, seed, index, count)
|
||||
committee_cache[param_hash] = ret
|
||||
committee_cache[param_hash] = _compute_committee(indices, seed, index, count)
|
||||
return committee_cache[param_hash]
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user