Skip to content

Commit 2f0f2e6

Browse files
Apply suggestions from code review: Add ValidatorIndex
Co-Authored-By: ChihChengLiang <[email protected]>
1 parent d692e40 commit 2f0f2e6

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

eth/beacon/types/exits.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class Exit(rlp.Serializable):
2929

3030
def __init__(self,
3131
slot: SlotNumber,
32-
validator_index: int,
32+
validator_index: ValidatorIndex,
3333
signature: BLSSignatureIntegers=EMPTY_SIGNATURE) -> None:
3434
super().__init__(
3535
slot,

eth/beacon/types/shard_committees.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class ShardCommittee(rlp.Serializable):
3131

3232
def __init__(self,
3333
shard: ShardNumber,
34-
committee: Sequence[int],
34+
committee: Sequence[ValidatorIndex],
3535
total_validator_count: int)-> None:
3636

3737
super().__init__(

eth/beacon/types/shard_reassignment_records.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class ShardReassignmentRecord(rlp.Serializable):
2424
]
2525

2626
def __init__(self,
27-
validator_index: int,
27+
validator_index: ValidatorIndex,
2828
shard: ShardNumber,
2929
slot: SlotNumber)-> None:
3030
super().__init__(

eth/beacon/types/states.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def __init__(
9999
latest_randao_mixes: Sequence[Hash32]=(),
100100
latest_vdf_outputs: Sequence[Hash32]=(),
101101
shard_committees_at_slots: Sequence[Sequence[ShardCommittee]]=(),
102-
persistent_committees: Sequence[Sequence[int]]=(),
102+
persistent_committees: Sequence[Sequence[ValidatorIndex]]=(),
103103
persistent_committee_reassignments: Sequence[ShardReassignmentRecord]=(),
104104
latest_crosslinks: Sequence[CrosslinkRecord]=(),
105105
latest_block_roots: Sequence[Hash32]=(),

eth/beacon/types/validator_registry_delta_block.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class ValidatorRegistryDeltaBlock(rlp.Serializable):
3131

3232
def __init__(self,
3333
latest_registry_delta_root: Hash32,
34-
validator_index: int,
34+
validator_index: ValidatorIndex,
3535
pubkey: BLSPubkey,
3636
flag: int) -> None:
3737
super().__init__(

0 commit comments

Comments
 (0)