Skip to content

Commit 515232e

Browse files
committed
ethereum/consensus-specs#163 exit_slot -> last_status_change_slot
1 parent 346e8a3 commit 515232e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

eth/beacon/types/validator_records.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ class ValidatorRecord(rlp.Serializable):
3333
('balance', uint64),
3434
# Status code
3535
('status', uint8),
36-
# Slot when validator exited (or 0)
37-
('exit_slot', uint64),
36+
# Slot when validator last changed status (or 0)
37+
('last_status_change_slot', uint64),
3838
# Sequence number when validator exited (or 0)
3939
('exit_seq', uint64),
4040
]
@@ -47,7 +47,7 @@ def __init__(self,
4747
randao_last_change: int,
4848
balance: int,
4949
status: int,
50-
exit_slot: int,
50+
last_status_change_slot: int,
5151
exit_seq: int) -> None:
5252
super().__init__(
5353
pubkey=pubkey,
@@ -57,6 +57,6 @@ def __init__(self,
5757
randao_last_change=randao_last_change,
5858
balance=balance,
5959
status=status,
60-
exit_slot=exit_slot,
60+
last_status_change_slot=last_status_change_slot,
6161
exit_seq=exit_seq,
6262
)

tests/beacon/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def sample_validator_record_params():
152152
'randao_last_change': 1,
153153
'balance': 100,
154154
'status': 1,
155-
'exit_slot': 0,
155+
'last_status_change_slot': 0,
156156
'exit_seq': 0
157157
}
158158

0 commit comments

Comments
 (0)