fix review comment: one line cache set

This commit is contained in:
protolambda 2019-06-18 21:50:53 +02:00
parent dd79a0edb5
commit f4de5e3c72
No known key found for this signature in database
GPG Key ID: EC89FDBB2B4C7623

View File

@ -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]