Skip to content

Commit 5fdd853

Browse files
authored
Merge pull request #1622 from Bhargavasomu/rename_validator_record_fields
Rename randao_skips to randao_layers
2 parents 3088bec + 979ac85 commit 5fdd853

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

eth/beacon/types/validator_records.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class ValidatorRecord(rlp.Serializable):
2222
# RANDAO commitment
2323
('randao_commitment', hash32),
2424
# Slot the proposer has skipped (ie. layers of RANDAO expected)
25-
('randao_skips', uint64),
25+
('randao_layers', uint64),
2626
# Balance in Gwei
2727
('balance', uint64),
2828
# Status code
@@ -37,7 +37,7 @@ def __init__(self,
3737
pubkey: int,
3838
withdrawal_credentials: Hash32,
3939
randao_commitment: Hash32,
40-
randao_skips: int,
40+
randao_layers: int,
4141
balance: int,
4242
status: int,
4343
latest_status_change_slot: int,
@@ -46,7 +46,7 @@ def __init__(self,
4646
pubkey=pubkey,
4747
withdrawal_credentials=withdrawal_credentials,
4848
randao_commitment=randao_commitment,
49-
randao_skips=randao_skips,
49+
randao_layers=randao_layers,
5050
balance=balance,
5151
status=status,
5252
latest_status_change_slot=latest_status_change_slot,

tests/beacon/conftest.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ def sample_validator_record_params():
284284
'pubkey': 123,
285285
'withdrawal_credentials': b'\x01' * 32,
286286
'randao_commitment': b'\x01' * 32,
287-
'randao_skips': 1,
287+
'randao_layers': 1,
288288
'balance': 100,
289289
'status': 1,
290290
'latest_status_change_slot': 0,
@@ -450,7 +450,7 @@ def genesis_validators(init_validator_keys,
450450
pubkey=pub,
451451
withdrawal_credentials=ZERO_HASH32,
452452
randao_commitment=init_randao,
453-
randao_skips=0,
453+
randao_layers=0,
454454
balance=max_deposit * denoms.gwei,
455455
status=ValidatorStatusCode.ACTIVE,
456456
latest_status_change_slot=0,

tests/beacon/helpers.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def mock_validator_record(pubkey, max_deposit):
1313
pubkey=pubkey,
1414
withdrawal_credentials=b'\x44' * 32,
1515
randao_commitment=b'\x55' * 32,
16-
randao_skips=0,
16+
randao_layers=0,
1717
balance=max_deposit,
1818
status=ValidatorStatusCode.ACTIVE,
1919
latest_status_change_slot=0,

0 commit comments

Comments
 (0)