Skip to content

Commit c253a5f

Browse files
authored
fix: missing justification keys extraction (leanEthereum#33)
1 parent 91b7950 commit c253a5f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/client/chain.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def set_justifications(state: State, justifications: Dict[str, List[bool]]) -> N
108108
justifications_roots = List[Bytes32, HISTORICAL_ROOTS_LIMIT]
109109
flattened_justifications = []
110110

111-
for root in sorted(justifications):
111+
for root in sorted(justifications.keys()):
112112
# Assert that votes list has exactly VALIDATOR_REGISTRY_LIMIT items.
113113
# If the length is incorrect, the constructed bitlist will be corrupt.
114114
assert len(justifications[root]) == VALIDATOR_REGISTRY_LIMIT

0 commit comments

Comments
 (0)